On May 14, 2006, at 11:46 PM, Dr Gerard Hammond wrote:

Hi,

I need to have a popup menu on a window that allows hierarchical popup menus (RB55) I don't think I can use a RB PopupMenu because it doesn't do hierarchical sub-menus, nor does it allow me to intercept the click before the menu is popped up (or does it?)

I know I can use HeirPop as it allows hierarchical popup menus and works on Win32 and MacOS 9 and X. I need something on the dialog for a User to click to get the hierarchical popup menus. I don't want to invent a new widget. It can't surprise/confuse my users. They are busy people and they know what a popup menu looks like and does. So I thought I would draw an OS theme aware PopupMenu in a canvas and handle the HierPop hierarchical Popup menus there.

That is fine but how do I paint the OS theme aware image of the Popup into the Canvas in RB code?
--

You can use Appearance Manager or HIToolbox calls to draw a popup menu into a Canvas. But perhaps you'll find it easier to use a REALbasic PopupMenu widget. You can show the menu in the MouseDown event handler, returning true to prevent the menu from doing what it usually does.

Charles Yeomans
_______________________________________________
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>

Reply via email to