On Feb 13, 2006, at 1:38 PM, Chuck Pelto wrote:


On Feb 13, 2006, at 11:26 AM, Charles Yeomans wrote:

You would need to create a ContextualMenu by implementing the RectControl.ConstructContextualMenu event handler; here you can set the Tag property of each MenuItem. You get a MenuItem in the ContextualMenuAction event handler; there you can read the tag property.

I'm not following this very well. Is there an example around?

I've got a ContextualMenu (CM) item. But don't follow how to implement the RectControl in association with it.

I'd been trying to avoid the ConstructContextualMenu because I thought it better to keep the multiple contextualmenus I've got planned separated and their construction params/methods isolated in separate CM items. Am I limited to working strictly inside the ConstructContextualMenu functionality of the lisbox I'm trying to build these CMs into?

If you're wanting to add CM capability to a Listbox, then I think it would be preferable to implement these events. If you have several reusable menus, then I'd suggest writing a MenuItem subclass for each of your contextual menus. Then you can just create an instance of the appropriate menu as needed.

--------------
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