We're all entitled to do things our favorite way, but here's my 2 cents worth:
When I first came to PB from VB6, I was concerned about this as well and so wrote this simple macro:
Code: Select all
Macro SetGadgetColors(GadgetNo, pFrontColor, pBackColor)
SetGadgetColor(GadgetNo, #PB_Gadget_FrontColor, pFrontColor)
SetGadgetColor(GadgetNo, #PB_Gadget_BackColor, pBackColor)
EndMacro
However, I subsequently found this was actually a bit of a pain as I didn't always want to set both colors, so I don't use the macro anymore. It's just remaining in my program to satisfy my early use of it. I now always use SetGadgetColor().