Restored from previous forum. Originally posted by crown.
Example of a ProgressBar in SystemTray...
Code: Select all
; ProgressBar in SystemTray - crown.
r=FindWindow_("Shell_TrayWnd", 0)
r = FindWindowEx_(r, 0, "TrayNotifyWnd", 0)
GetWindowRect_(r,win.RECT)
x=win\left : y=win\top
w=win\right-win\left : h=win\bottom-win\top
MessageRequester("Info", "Look at the clock in the systemtray", 0)
hwnd=OpenWindow(0,x,y,w,h,"", #PB_Window_BorderLess )
If hwnd
CreateGadgetList(WindowID(0))
ProgressBarGadget(1,0,0,w,h,0,100,#PB_ProgressBar_Smooth)
EndIf
For x=1 To 100
SetGadgetState(1,x)
Delay(50)
Next
End