Code: Select all
Global Window_0
Global Button_0, Spin_0, TrackBar_0, ProgressBar_0, Scrollbar_0, Option_0, Checkbox_0, Combo_0, String_0
Procedure InitWindow_0()
Window_0 = OpenWindow(#PB_Any, 0, 0, 860, 460, "Window", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget | #PB_Window_SizeGadget)
CreateStatusBar(0, WindowID(Window_0))
AddStatusBarField(100)
StatusBarText(0, 0, "Text")
AddStatusBarField(100)
StatusBarProgress(0, 1, 0)
CreateMenu(0, WindowID(Window_0))
MenuTitle("File")
MenuTitle("Edit")
Button_0 = ButtonGadget(#PB_Any, 30, 20, 120, 30, "Button")
Spin_0 = SpinGadget(#PB_Any, 30, 60, 120, 30, 0, 0)
TrackBar_0 = TrackBarGadget(#PB_Any, 30, 100, 120, 30, 0, 0)
ProgressBar_0 = ProgressBarGadget(#PB_Any, 30, 140, 120, 20, 0, 0)
Scrollbar_0 = ScrollBarGadget(#PB_Any, 20, 390, 590, 30, 0, 0, 0)
Option_0 = OptionGadget(#PB_Any, 30, 170, 110, 30, "Option")
Checkbox_0 = CheckBoxGadget(#PB_Any, 30, 210, 130, 30, "Checkbox")
Combo_0 = ComboBoxGadget(#PB_Any, 230, 20, 220, 30)
String_0 = StringGadget(#PB_Any, 230, 60, 220, 30, "")
EndProcedure
Procedure Window_0_Events(event)
Select event
Case #PB_Event_Gadget
Select EventGadget()
EndSelect
EndSelect
EndProcedure
InitWindow_0()
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
