On Jul 27, 2006, at 5:08 PM, Russ Jones wrote:


On Jul 27, 2006, at 2:59 PM, [EMAIL PROTECTED] wrote:

I have made hierarchical contextual menus before by appending submenus. However, is there a way to do this with a standard popup menu? Instead of just adding rows to popup control on a window, I want to add rows and add submenus.
However there is no APPEND for popup controls. Any ideas?

In response to another thread in this list, ("Contextual Menus in Windows") on July 19,
Terry Ford recommended:
Take a look at Phil M's code in the archives at:
<http://support.realsoftware.com/listarchives/gettingstarted/ 2005-11/msg00080.html
This is the best example I have seen so far.

Phil's example includes the use of submenus. I believe it could solve your problem, too.

Russ

Just to add to what Russ mentioned, you are actually creating a Dynamic popup menu which is quite different from the built-in ones. You are actually not using the Contextual Menu or Bevelbutton or the PopupMenu classes but the MenuItem.Popup Method.

You can position your popup wherever you like or where the mouse is by default. It will not duplicate a true PopupMenu control's menu but will be more like the BevelButton's or Contextual menu.

All of this requires 2006.

Terry

_______________________________________________
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