Menus, popup and toolbar
-
Hi, I would like to create application that support main menus, toolbar and popup menus. I know I can define one function and related all events ‘Click’ to this function. I would like to define shortcut, tooltip and image for each GUI interface such as main men, tool bar and popup menu. Is there an option to define it one time and relate it to each control? I know I have in Borland type call ‘Action’ that can define the event function and property such as tooltip, shortcut and then define the action in each control That way I define it one time and not three times for each option in GUI Thanks Ronen
-
Hi, I would like to create application that support main menus, toolbar and popup menus. I know I can define one function and related all events ‘Click’ to this function. I would like to define shortcut, tooltip and image for each GUI interface such as main men, tool bar and popup menu. Is there an option to define it one time and relate it to each control? I know I have in Borland type call ‘Action’ that can define the event function and property such as tooltip, shortcut and then define the action in each control That way I define it one time and not three times for each option in GUI Thanks Ronen
Ronenb wrote:
Is there an option to define it one time and relate it to each control?
Sure, you can create one method and point all of your events to it. That's about it, really.
Christian Graus Driven to the arms of OSX by Vista.
-
Ronenb wrote:
Is there an option to define it one time and relate it to each control?
Sure, you can create one method and point all of your events to it. That's about it, really.
Christian Graus Driven to the arms of OSX by Vista.
-
The tooltip you can assign in the properties of the control, same place as the event handler goes. But, you do have to do that for each menu item/button/etc. Same for the shortcut.
Christian Graus Driven to the arms of OSX by Vista.