V5.40B3 - SetGadgetColor() bug

Linux specific forum
User avatar
StarBootics
Addict
Addict
Posts: 1006
Joined: Sun Jul 07, 2013 11:35 am
Location: Canada

V5.40B3 - SetGadgetColor() bug

Post 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 <<<<<
; <<<<<<<<<<<<<<<<<<<<<<<
The Stone Age did not end due to a shortage of stones !
User avatar
Keya
Addict
Addict
Posts: 1890
Joined: Thu Jun 04, 2015 7:10 am

Re: V5.40B3 - SetGadgetColor() bug

Post 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 :))
User avatar
StarBootics
Addict
Addict
Posts: 1006
Joined: Sun Jul 07, 2013 11:35 am
Location: Canada

Re: V5.40B3 - SetGadgetColor() bug

Post 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
The Stone Age did not end due to a shortage of stones !
Fred
Administrator
Administrator
Posts: 18350
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: V5.40B3 - SetGadgetColor() bug

Post by Fred »

Color are very dependant of theme on linux, so it not granted to always work.
Post Reply