StatusBarText(..., ..., ..., #PB_StatusBar_Right)

Everything else that doesn't fall into one of the other PB categories.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

StatusBarText(..., ..., ..., #PB_StatusBar_Right)

Post by srod »

Code: Select all

If OpenWindow(0, 0, 0, 440, 50, "StatusBar", #PB_Window_SystemMenu|#PB_Window_ScreenCentered|#PB_Window_SizeGadget)
  If CreateStatusBar(0, WindowID(0))
    AddStatusBarField(#PB_Ignore)
  EndIf
  StatusBarText(0, 0, "Area right!", #PB_StatusBar_Right) 
    
  Repeat
  Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
On my system (Vista 32, PB 4.31) the status bar text is being truncated! Can someone else please confirm before I post a bug report?

Seems to be because of the #PB_Ignore flag.

Thanks.

**EDIT : I suspect this is a vista thing because of the 'sizing guide' and perhaps not a bug. Yes, remove the sizing box and it is fine. Is it a bug that PB does not account for this when a window with a sizing box is not maximized?
I may look like a mule, but I'm not a complete ass.
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: StatusBarText(..., ..., ..., #PB_StatusBar_Right)

Post by c4s »

srod wrote:**EDIT : I suspect this is a vista thing because of the 'sizing guide' and perhaps not a bug. Yes, remove the sizing box and it is fine. Is it a bug that PB does not account for this when a window with a sizing box is not maximized?
It's the same on XP and I think it's a bug that should be fixed ;)
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Yes, I think PB is responsible for keeping tabs upon the width of the statusbar parts and thus it would indeed appear to be a bug! :)
I may look like a mule, but I'm not a complete ass.
User avatar
Shardik
Addict
Addict
Posts: 2079
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Post by Shardik »

No problem for AndLinux (Ubuntu 9.04) runnning with a modified kernel as a task in Windows XP::lol:
Image
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Who the bloody hell cares about Linux! :wink:

:twisted:
I may look like a mule, but I'm not a complete ass.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

It's a bug in my opinion. I can confirm it as well.
Post Reply