Page 1 of 1

[No bug] StatusBar flag #PB_StatusBar_Raised does nothing?

Posted: Thu Feb 20, 2025 2:35 am
by BarryG
From the example in the manual:

Code: Select all

If OpenWindow(0, 100, 150, 300, 100, "PureBasic - StatusBar Example", #PB_Window_SystemMenu | #PB_Window_SizeGadget)

  If CreateStatusBar(0, WindowID(0))
    AddStatusBarField(100)
    AddStatusBarField(50)
    AddStatusBarField(100)
  EndIf

  StatusBarText(0, 0, "Area 1")
  StatusBarText(0, 1, "Area 2")
  StatusBarText(0, 2, "Area 3", #PB_StatusBar_Right | #PB_StatusBar_Raised)
      
  Repeat

  Until WaitWindowEvent() = #PB_Event_CloseWindow
  
EndIf

Area 3 isn't raised and looks the same as the other areas.

Image

Re: StatusBar flag #PB_StatusBar_Raised does nothing?

Posted: Thu Feb 20, 2025 3:05 am
by ChrisR
A bug in the StatusBar example file, it should be without #PB_StatusBar_Raised
In StatusBarText() help: #PB_StatusBar_Raised : raised borders (has no effect on OS X and Windows with theme enabled)
SetWindowTheme_(StatusBarID(0), @"", @"")

Re: StatusBar flag #PB_StatusBar_Raised does nothing?

Posted: Thu Feb 20, 2025 3:59 am
by BarryG
Oh, right. My bad. Not a bug. :oops: Original post title edited.