realbasic-nug
[Top] [All Lists]

Re: menuItems

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: menuItems
From: Aaron Ballman <aaron at realsoftware dot com>
Date: Mon, 28 Feb 2005 15:40:41 -0600
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <f5a5aea7507b686a8a4e9714fcca0126 at comcast dot net>
I have a question about dynamic menuItems.
I am able to create them ok, but they are not enabled...and I think the reason is they do not have menuhandler code. But, I cannot create the code for this as the menuItems are not created until run time. So, how does one create the code for the menuhandlers for a menuItem which has not yet been created? If this is not too articulate, then it is probably because I do not yet fully understand the issue.

Make a MenuItem subclass and implement its Action event -- then create new instances of the subclass when you're doing your dynamic menus.

HTH!

~Aaron
--
REAL World 2005 - The REALbasic User Conference
March 23-25, 2005, Austin, Texas
<http://www.realsoftware.com/realworld>

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