Code: Select all
If OpenWindow(0, 0, 0, 300, 50, "ProgressBarGadget example...", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
If CreateGadgetList(WindowID(0))
ProgressBarGadget(1, 10, 10, 280, 30, 0, 100)
EndIf
percent.f = 50.00
SetGadgetState(1, percent)
gtk_progress_bar_set_text_(GadgetID(1), StrF(percent,2)+"%")
Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf