Page 1 of 1

V5.40B3 - SetGadgetColor() bug

Posted: Wed Sep 09, 2015 9:08 pm
by StarBootics
Hello,

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 <<<<<
; <<<<<<<<<<<<<<<<<<<<<<<

Re: V5.40B3 - SetGadgetColor() bug

Posted: Thu Sep 10, 2015 12:29 am
by Keya
I havent tested 5.40 on Linux yet but it works fine in 5.31 x86 (assuming your color choice of blue and orange is "fine" that is :))

Re: V5.40B3 - SetGadgetColor() bug

Posted: Fri Sep 18, 2015 9:56 pm
by StarBootics
Hello,

Apparently this bug is partially corrected. With the example provided The color of the text is OK, the background remain White. If we select the string, the background color the one set by SetGadgetColor() in this case orange.

Best regards
StarBootics

Re: V5.40B3 - SetGadgetColor() bug

Posted: Fri Sep 25, 2015 12:16 pm
by Fred
Color are very dependant of theme on linux, so it not granted to always work.