Might just be one of the things legends are made of

D'oh!! I am so dumb that I never thought of that!! Remind me to soundly bash myself around the head with a rubber chicken!In your case, if you really wanted to, you could put [ IconBarGadget | Strings and Combos | Another IconBarGadget ], in fact there is already a helper procedure which creates a one-button IconBarGadget.
Code: Select all
IBG(0) = IconBarGadget(0, 490, 790, 78, #IconBarDisplay_ImageAndText)
AddIconBarGadgetItem(IBG(0), "Add", #butAdd)
AddIconBarGadgetItem(IBG(0), "Copy", #butCopy)
AddIconBarGadgetItem(IBG(0), "Delete", #butDelete)
AddIconBarGadgetItem(IBG(0), "Edit", #butEdit)
AddIconBarGadgetItem(IBG(0), "Undelete", #butUndelete)
AddIconBarGadgetItem(IBG(0), "Export", #butExport)
AddIconBarGadgetItem(IBG(0), "Import", #butImport)
AddIconBarGadgetItem(IBG(0), "Find", #butFind)
AddIconBarGadgetItem(IBG(0), "Help", #butHelp)
AddIconBarGadgetItem(IBG(0), "Print", #butPrint)
AddIconBarGadgetItem(IBG(0), "Sticky", #butStickywindow)
AddIconBarGadgetItem(IBG(0), "ToolTips", #butTooltips)
AddIconBarGadgetItem(IBG(0), "TitleClock", #butClock)
AddIconBarGadgetItem(IBG(0), "Setup", #butSetup)
SetIconBarGadgetFontID(IBG(0), LoadFont(0, "Comic Sans MS", 10))
SetIconBarGadgetColor(IBG(0), #IconBar_BackgroundColor, $BFBFBF)
SetIconBarGadgetColor(IBG(0), #IconBar_HighlightColor, $400040)
SetIconBarGadgetColor(IBG(0), #IconBar_TextColor, $701919)
SetIconBarGadgetRadius(IBG(0), 7)
SetIconBarGadgetAttribute(IBG(0), #IconBar_MouseOverEvents, #True)
IBG(1) = IconBarGadgetButton(800, 490, 54, 78, #butExit, "Exit", #IconBarDisplay_ImageAndText)
SetIconBarGadgetFontID(IBG(1), LoadFont(1, "Comic Sans MS", 10))
SetIconBarGadgetColor(IBG(1), #IconBar_BackgroundColor, $BFBFBF)
SetIconBarGadgetColor(IBG(1), #IconBar_HighlightColor, $400040)
SetIconBarGadgetColor(IBG(1), #IconBar_TextColor, $701919)
SetIconBarGadgetRadius(IBG(1), 7)
Code: Select all
SetIconBarGadgetMargin(IBG(1), #IconBar_Default)
Didn't change it. I'll try a normal iconbar when I get back from the shopping and junk food expeditionkenmo wrote:I think I know why... The "Button" procedure changes the default margin around the highlight to 0.
I assumed if someone was using a standalone button and gave coordinates, then they want the highlight at those exact coordinates with no margin. Didn't really think too much about this small change.
But if you want the "button" version to look exactly like the "normal" version, maybe try:
or just use another "normal" IconBar? (I can't test right now.)Code: Select all
SetIconBarGadgetMargin(IBG(1), #IconBar_Default)
Thanks davido.davido wrote:The Ribbon is great addition. Thank you very much.![]()
I wonder; is it possible to add or delete icons dynamically?
I tried this but they were always added on the last tab. Couldn't delete any, though.
Code: Select all
Procedure.i GetIconBarFromRibbonBar(*RB.RB_RIBBONBAR, Tab.i)
If (*RB And (Tab >= 0) And (Tab < ListSize(*RB\IconBar())))
SelectElement(*RB\IconBar(), Tab)
ProcedureReturn (*RB\IconBar())
EndIf
EndProcedure
PM sent - thank you very much!PM me and I'll zip it up for you