Thanks for the kind words Yah, that lib stretched my brain a bit, I totally forgot about the docs. And I think I may have included some unnecessary functions just for the sake of trying to make "everything" accessible, rather than focusing on the most useful parts.
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){ }