[No bug] StatusBar flag #PB_StatusBar_Raised does nothing?

Just starting out? Need help? Post your questions and find answers here.
BarryG
Addict
Addict
Posts: 4219
Joined: Thu Apr 18, 2019 8:17 am

[No bug] StatusBar flag #PB_StatusBar_Raised does nothing?

Post 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
Last edited by BarryG on Thu Feb 20, 2025 9:15 am, edited 2 times in total.
User avatar
ChrisR
Addict
Addict
Posts: 1484
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: StatusBar flag #PB_StatusBar_Raised does nothing?

Post 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), @"", @"")
BarryG
Addict
Addict
Posts: 4219
Joined: Thu Apr 18, 2019 8:17 am

Re: StatusBar flag #PB_StatusBar_Raised does nothing?

Post by BarryG »

Oh, right. My bad. Not a bug. :oops: Original post title edited.
Post Reply