Article Preview
Buy Now
| Print: | |
| PDF: |
Intel corner
Menus
Handling menus in a cross-platform application
Issue: 6.4 (May/June 2008)
Author: Christian Schmitz, cSchmitz-at-rbdeveloper.com
Author Bio: Christian Schmitz is the creator of the Monkeybread Software Realbasic Plugins.
Article Description: No description available.
Article Length (in bytes): 5,768
Starting Page Number: 42
RBD Number: 6417
Resource File(s): None
Related Link(s): None
Known Limitations: None
Excerpt of article text...
To succeed in software development, you need to take care of every detail of your application. This article shows you how to handle the platform differences menu handling, mostly for Mac and Windows. For Linux the handling depends on the application developer, so there are a lot of differences. Most Linux applications behave like their Windows counterparts in that area.
More than one menu?
On Mac OS X you have one menu bar which shows the current menu. As your project can define several menu bars, you may ask which one is currently active. First you can assign a menu bar to the application class. In the app.menubar property, there is a global menu bar defined. This property is by default assigned to the default menubar object.
Each window has a menubar property so you can define a menubar for each window. Whenever the user switches from one window to another one, the menubar changes. REALbasic checks whether a menu bar is defined for the new window. If no menu bar is defined there, the global menubar is used from the app.menubar property. If no menu is defined, no menu is visible. On Mac OS X you will just see an empty menu bar with just the Apple and application menu.
...End of Excerpt. Please purchase the magazine to read the full article.
Article copyrighted by REALbasic Developer magazine. All rights reserved.
|






