Add handlers to menu items added at run time
-
hi, i had asked a similar query some days back. i wanted to add some text to the menu at runtime when the user clicks a button(similar to Add to Favourites). the solution posted helped to add the string to the menu at run time. but now i want to write a handler for the items added to the menu list; as there can be many strings in the menu we cannot write handlers for all those items. can anyone tell me how to write a single handler for the strings added in the Favourites menu.( i.e. the user would be adding a names of sites or rather strings to the menu and when he clicks one of those added in the menu i should be able to process the string, such as what is the text selected/string name). thanks aditya
-
hi, i had asked a similar query some days back. i wanted to add some text to the menu at runtime when the user clicks a button(similar to Add to Favourites). the solution posted helped to add the string to the menu at run time. but now i want to write a handler for the items added to the menu list; as there can be many strings in the menu we cannot write handlers for all those items. can anyone tell me how to write a single handler for the strings added in the Favourites menu.( i.e. the user would be adding a names of sites or rather strings to the menu and when he clicks one of those added in the menu i should be able to process the string, such as what is the text selected/string name). thanks aditya
Please clarify. Are you asking how to make the function be the handler for all the menu items, or how to write the body of the function? -- jlr http://jlamas.blogspot.com/[^]