Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to put script to a dynamically created menu item

Status
Not open for further replies.

dynamicjourney2001

Programmer
May 15, 2003
30
US
hello everyone, just curious though, how can i put or call a script/function from a dynamically created menu item.

have fun!
Dynamic
 
I have dynamically created menu items and what I did was create a function, mf_callitem(string a_sTag) for example, then I just created an invisible menu item and in it's clicked script, put mf_callitem(this.tag). Whenever I create a new menu item, I use the CREATE USING command to create the new item from my invisible item and then I give the new item a unique tag and set its other properties. After doing all this, mf_callitem will be called with the appropriate tag parameter each time one of these dynamically created items is "clicked".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top