News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.

Post Reply  Post Thread 
callback for an individual menu entry
Author Message
Senior Member

Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #1
RE: callback for an individual menu entry

sometimes you want menu items with the same name ...
Take a look at "sqlTool.lua" for a solution to this problem

It seems that you are using the menu item index. This works for duplicate labels but can be nearly unusable if you have dynamically created menus, or complicated if you decide to change the order of your menu items. I think either method has its benefits and drawbacks.

I was looking into something that uses the find_item() function to allow this pointer to be used, but unfortunately my_pointer:label() returns the same string as my_menu:text(), meaning that neither one uses a full pathname to the item. maybe item_pathname() could be used, but so far it hasn't shown itself to provide very helpful information.

09-19-2007 05:08 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
RE: callback for an individual menu entry - mikshaw - 09-19-2007 05:08 AM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: