.. _func_maxgui_progress bars_createprogbar: ============= CreateProgBar ============= CreateProgBar - Description =========== .. code-block:: blitzmax CreateProgBar:TGadget(x,y,w,h,group:TGadget,style=0) Create a Progress Bar gadget. Similar to Labels, Progress Bar gadgets do not generate any events themselves. See Also: #UpdateProgBar Parameters ========== Return Values ============= Nothing. Examples ======== .. code-block:: blitzmax ' createprogbar.bmx Import MaxGui.Drivers Strict Local window:TGadget=CreateWindow("My Window",50,50,240,100,,WINDOW_TITLEBAR) Local progbar:TGadget=CreateProgBar(10,10,200,20,window) CreateLabel "Please Wait",10,40,200,20,window CreateTimer 10 While WaitEvent() Select EventID() Case EVENT_WINDOWCLOSE End Case EVENT_TIMERTICK Local t=EventData() If t=50 End UpdateProgBar progbar,t/50.0 End Select Wend See Also ========