Setting Button color
Posted: Fri Apr 14, 2023 11:09 pm
So I start the IDE, add a form then put a button on the form. How do I set the Button color? 

http://www.purebasic.com
https://www.purebasic.fr/english/
Code: Select all
If OpenWindow(0, 0, 0, 200, 60, "ButtonImageGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
If LoadImage(0, #PB_Compiler_Home + "/Examples/Sources/Data/PureBasic.bmp") ; change 2nd parameter to the path/filename of your image
ButtonImageGadget(0, 10, 10, 180, 50, ImageID(0))
EndIf
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf