It seems I can't set the default background color (which is white) of the ButtonImageGadget which can clash with a white image...
Too bad SetGadgetColor(0, #PB_Gadget_BackColor, RGB(105, 105, 105)) doesn't work. Any other way?
ButtonImageGadget background color
Re: ButtonImageGadget background color
Buttons not support SetGadgetColor.
See PB-Help
See PB-Help
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: ButtonImageGadget background color
You can set the background color of the button cell if you disable the border
Code: Select all
Button = GadgetID(0)
Cell = CocoaMessage(0, Button, "cell")
Color = CocoaMessage(0, 0, "NSColor redColor")
CocoaMessage(0, Button, "setBordered:", #NO)
CocoaMessage(0, Cell, "setBackgroundColor:", Color)
Windows (x64)
Raspberry Pi OS (Arm64)
Raspberry Pi OS (Arm64)
Re: ButtonImageGadget background color
Hi Rinzwind,
Try a search for these in Topic Titles Only
ButtonColor
[Module] ButtonEx (all OS)
ButtonImageGadget without bevel?
String-Button with Icon
They contain excellent help on buttons from some of the elite guys
Try a search for these in Topic Titles Only
ButtonColor
[Module] ButtonEx (all OS)
ButtonImageGadget without bevel?
String-Button with Icon
They contain excellent help on buttons from some of the elite guys
If it's falling over......just remember the computer is never wrong!
Re: ButtonImageGadget background color
But the button has no visual effects anymore.
The best way is to create the button yourself with the CanvasGadget.
There are many examples for this.
Link : viewtopic.php?f=12&t=74267
The best way is to create the button yourself with the CanvasGadget.
There are many examples for this.
Link : viewtopic.php?f=12&t=74267
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive