Special

Clearance Sale!

We've been publishing for over five years now and it's time to clear out our inventory of back issues, so we're slashing prices!

RBD Magazines

Check out this amazing clearance sale of all our past issues. Missing some issues? This is a great time to complete your RBD collection. Save up to 40% off the regular price of our printed back issue packages. These prices are only good until the end of the year May 2008 and supplies are limited, so place your order today.

Article Preview


Buy Now

PDF:

Beginner's Corner

The Invisible Interface

Using Contextual Menus

Issue: 6.5 (July/August 2008)
Author: Marc Zeedar editor-at-rbdeveloper.com
Article Description: No description available.
Article Length (in bytes): 13,980
Starting Page Number: 34
RBD Number: 6511
Resource File(s):

Download Icon 6511.zip Updated: Tuesday, July 1, 2008 at 11:42 AM

Related Link(s): None
Known Limitations: None

Excerpt of article text...

On occasion, no interface is best. Such a hidden interface is implemented via contextual menus -- dynamic menus that are built when needed so they have only the items appropriate for the current situation and don't clutter the interface with options. Contextual menus are accessed via special mouse buttons or keystrokes (i.e., control-clicking on the Mac or right-clicking on systems with multiple-button mice).

Usually contextual menus are used as a secondary method of activating a feature, though in certain situations it might be appropriate to make them the only way to choose an action (such as for options only power users would need). But their main benefit is that they stay hidden until needed and thus can help you keep your interface minimal and clean but allow options when required.

So how do you go about supporting contextual menus in your applications? With recent versions of REALbasic it is not difficult. All windows and controls include standard ConstructContextualMenu and ContextualMenuAction events. In the first event you build your contextual menu. You should check the current situation of your program and add the appropriate menu items to the contextual menu. Within the ContextualMenuAction you actually handle the execution of those menu commands.

...End of Excerpt. Please purchase the magazine to read the full article.

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com