Code: Select all
OpenWindow(0, 400, 200, 600, 100, "StatusBar", #PB_Window_SystemMenu)
sb=CreateStatusBar(0, WindowID(0))
AddStatusBarField(Random(200,70))
AddStatusBarField(Random(200,70)) : StatusBarText(0,1,"X/W of this")
AddStatusBarField(Random(200,70))
; Do the math here. :)
Debug "X of field 1 = "+Str(x)
Debug "W of field 1 = "+Str(w)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
