No color in string gadget

Post bugreports for the Mac OSX version here
WilliamL
Addict
Addict
Posts: 1260
Joined: Mon Aug 04, 2008 10:56 pm
Location: Seattle, USA

No color in string gadget

Post by WilliamL »

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.

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
This is what I see

Image

also see
viewtopic.php?t=88085
Last edited by WilliamL on Fri Feb 27, 2026 11:44 pm, edited 7 times in total.
MacBook Pro-M1 (2021), Tahoe 26.3.1, PB 6.40b1
mrbungle
Enthusiast
Enthusiast
Posts: 188
Joined: Wed Dec 30, 2020 3:18 am

Re: No color in string gadget

Post by mrbungle »

Not on Tahoe, but 15.73 with the macOS 26 SDK and see all three gadgets red
Post Reply