No color in string gadget
Posted: Mon Dec 15, 2025 10:09 pm
I'm not getting any color in the help example below. I'm not getting any color using any older version of PB either so I guessing the problem is not PB but something else. My older compiled executables look fine (have color) but this example doesn't show any color. Also the stringgadget has a rounded edge and the border is very faint (gray). I created an executable of below code and it looked the same. I'm using a just installed PB6.30b5 and Tahoe 26.1.
[later]
I found an update to the command line tools and it didn't change anything.
[later]
I updated to Tahoe 26.2 and looked again for new CLTs but it didn't change anything.
[later]
I discovered that if I click in the stringgadget the background color appears as a square red box is but recessed a few pixels (see below) from the rounded frame. If I click on another gadget the background color disappears. The text color appears ok. Oh, the textgadget works fine.
I've also noticed that ToolBar icons are slightly larger and spaced wider apart.
This problem just appeared and I'm at a loss of what to do. Same result with 6.30b6.
[later]
I added the ExplorerTreeGadget and I don't get any color there either.
[2/27]
Using Tahoe 26.3 and today there is a new command line tools and it didn't seem to fix the StringGadget background color.
This is what I see

also see
viewtopic.php?t=88085
[later]
I found an update to the command line tools and it didn't change anything.
[later]
I updated to Tahoe 26.2 and looked again for new CLTs but it didn't change anything.
[later]
I discovered that if I click in the stringgadget the background color appears as a square red box is but recessed a few pixels (see below) from the rounded frame. If I click on another gadget the background color disappears. The text color appears ok. Oh, the textgadget works fine.
I've also noticed that ToolBar icons are slightly larger and spaced wider apart.
This problem just appeared and I'm at a loss of what to do. Same result with 6.30b6.
[later]
I added the ExplorerTreeGadget and I don't get any color there either.
[2/27]
Using Tahoe 26.3 and today there is a new command line tools and it didn't seem to fix the StringGadget background color.
Code: Select all
If OpenWindow(0, 0, 0, 322, 340, "StringGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
StringGadget(0, 8, 10, 306, 20, "StringGadget background should be red")
SetGadgetColor(0, #PB_Gadget_BackColor, $0000FF)
StringGadget(1, 8, 40, 306, 20, "click-in StringGadget to get color")
SetGadgetColor(1, #PB_Gadget_BackColor, $0000FF)
TextGadget(2, 10, 70, 250, 20, "TextGadget looks normal") ; works fine with red square box filled
SetGadgetColor(2, #PB_Gadget_BackColor, $0000FF)
ExplorerTreeGadget(3,10, 100, 200, 200, "*.pb;*.pbi")
SetGadgetColor(0,#PB_Gadget_FrontColor,#Red)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
also see
viewtopic.php?t=88085