The SetGadgetColor() don't have any effect at all. Tested only with StringGadget() and EditorGadget(). Other gadgets with color can be change are likely affected as well.
Best regards
StarBootics
Code: Select all
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
; Project name : SetGadgetColor() bug
; File Name : SetGadgetColor() bug.pb
; File version: 1.0.0
; Programming : Bug Demonstrator
; Programmed by : StarBootics
; Date : 09-09-2015
; Last Update : 09-09-2015
; PureBasic code : V5.40 LTS Beta 3 X64
; Platform : Ubuntu Gnome 15.04 X64
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
; Gadget type know to be Affected :
;
; StringGadget()
; EditorGadget()
;
;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
If OpenWindow(0, 0, 0, 322, 205, "Les options de StringGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
StringGadget(0, 8, 10, 306, 20, "Gadget saisie de texte normal...")
SetGadgetColor(0, #PB_Gadget_FrontColor, RGB(000,000,255))
SetGadgetColor(0, #PB_Gadget_BackColor, RGB(255,128,000))
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
; <<<<<<<<<<<<<<<<<<<<<<<
; <<<<< END OF FILE <<<<<
; <<<<<<<<<<<<<<<<<<<<<<<
