realbasic-nug
[Top] [All Lists]

Question about conditional menu

To: realbasic-nug at lists dot realsoftware dot com
Subject: Question about conditional menu
From: Emile Schwarz <emile dot a dot schwarz at wanadoo dot fr>
Date: Mon, 28 Feb 2005 11:19:12 +0100
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Hi all,


REALbasic 5.5.4
Mac OS X 10.3.8
Windows XP SP 2

This question is about a Menu that will be available only if window x is 
frontmost.

In a current project, I put together seven previously stand-alone projects. Each one is in its own folder in the Project window and have one or more Window(s), a Module and a MenuBar.

To get a better idea of how that application is, thing at AppleWorks: some modules that are in a single application. Each window have its own work to do, not related to the others (excepted in my case, because the Editor'module' is here to edit the source file for the Download 'module', the Graphics 'module' is here to resize and save some downloaded images, the html processor 'module' is here to get links from downloaded html files, and so on...)

So, the File Menu (File I/O) is different depending on the used 'module', the Edit Menu is common and the Utilities Menu have two parts: the <call-a'module'> part and the <specific-to-a-module> part.


Actually, each Window holds its own MenuBar and the corresponding MenuHandlers.

Earlier this morning I checked some Macintosh specifics (AppleScript) and changed a window name, ask for a compilation and put #If TargetMacOS .../... #EndIf in the (seven or eight) found calls. I discovered (remember ?) that I have the same amount of time the same code to call the other windows (a window = a particular set of functions - a previous single project).


How can I achieve that ?

Ideas ?

TIA,

Emile


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>
  • Question about conditional menu, Emile Schwarz <=