gettingstarted
[Top] [All Lists]

Re: popup hierachy

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: popup hierachy
From: Terry Ford <tmford at shaw dot ca>
Date: Thu, 27 Jul 2006 18:20:41 -0700
Delivered-to: listarchive at realsoftware dot com
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <360 dot 9292e58 dot 31fa670f at aol dot com> <BAYC1-PASMTP12C85EFBB17339C22A357E90590 at CEZ dot ICE>

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


On Jul 27, 2006, at 2:59 PM, GAmoore at aol dot com 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>


<Prev in Thread] Current Thread [Next in Thread>