Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
733
Single Toolclick event code for all toolbars?
posted

I apologize if I am missing something here, but it looks like there is a single event handler for all clicks on all tools for all ultratoolbars on a form.  Is this right?  So I place an UltraToolBarManager control on my form, add a menu bar and a toolbar, add some menus and buttons, and then I have a giant select case statement to handle the clicks inside the UltraToolBarManager.ToolClick event handler:

 Select Case e.Tool.Key

Case "Save"

(etc...)

 Please advise if there is something I am missing or if there is a way to set up single event handlers for the individual tools.  I am using NetAdvantage 2007 vol 3.

Thanks,

Bob

Parents
  • 2077
    Offline posted

    Events handler can be set up to individual tools this way:

    UltraToolbarManager.Toolbars["ToolbarKey"].Tools["ToolKey"].ToolClick or ToolDoubleClick or any other event available for a tool.

    Just make sure you don't forget to set the Key value for the toolbars and the tools.

    Hope it helps.
    Emanuel

Reply Children