
I'm trying to get a ProgressBar to appear on the StatusBar. I can't get the bar to appear unless I move the window "off-screen" and back, or unless I hide, and unhide the window.
I think I'm doing something wrong to have to resort to such "tricks". Does someone have a better solution?
Thanks!
Code: Select all
Enumeration
#Window
#StatusBar
#ProgressBar
EndEnumeration
If OpenWindow(#Window,#PB_Ignore,0,200,100,"Status Test")
CreateStatusBar(#StatusBar, WindowID(#Window))
AddStatusBarField(150)
StatusBarText(#StatusBar, 0, "Howdy, mate!")
ProgressBarGadget(#ProgressBar,150,79,47,20,0,100)
SetGadgetState(#ProgressBar,50)
; HideWindow(#Window,1) ; I need to do this to get the progress bar to show up. Am I doing something wrong?
; HideWindow(#Window,0)
EndIf
Repeat
Ev = WaitWindowEvent(1)
Until Ev = #PB_Event_CloseWindow