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

Posts: 81
Group: Registered
Joined: May 2007
Status: Offline
Reputation: 0
Post: #1
RE: callback for an individual menu entry

JohnMurga Wrote:
Defining a callback for a menu-item isn't implemented - Won't work currently.

Of course this is just a matter of taste, but I think in some cases a individual callback is preferable to a big block of if, switching through all menu items in one single callback.

JohnMurga Wrote:
mikshaw's method works, however sometimes you want menu items with the same name ...

Take a look at "sqlTool.lua" for a solution to this problem along with a few other examples of menu usage.


Shouldn't "item_pathname" take care of this case, when you have multiple submenus with the same item names? Unfortunately it looks like item_pathname also does (currently) not work.


09-19-2007 06:32 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 - Juergen - 09-19-2007 06:32 AM

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

Forum Jump: