Thanks for the kind words
![Smile :)](./images/smilies/icon_e_smile.gif)
I'll address this part in the IronToolbar thread.AHK_user wrote: ↑25 Apr 2022, 15:55Another idea is to see the toolbar more similar to the menubar syntax, define the buttons seperately and connect the toolbar to the gui
Something like:This seems logical ahk syntax and gives flexibility for later expansion, setting,...Code: Select all
MyToolbar := Toolbar(generaloptions) oToolbarButton1 := MyToolbar.Add(options, "buttontext 1", callback1, IconNumber, PartNumber) oToolbarButton2 := MyToolbar.Add(options, "buttontext 2", callback2, IconNumber, PartNumber) MyGui.ToolBar := MyToolbar callback1(GuiObject,ToolbarObject){ MsgBox(ToolbarObject.text) } callback2(GuiObject,ToolbarObject){ }
![]()