PVGadgets_InitAnimGadget ()
Previous  Top  Next

Initializes the PVGadgets_AnimGadget.

Use:
hAnimGadget=PVX::PVGadgets_InitAnimadget()

Returns special AnimGadget Handle used for creating the PVX::PVGadgets_AnimGadget.



This command must be called at the start of any program using PVX::
PVGadgets_AnimGadget.


Example:

hAnimGadget=PVX::PVGadgets_InitAnimGadget()
#Window_Main=1

If OpenWindow(#Window_Main,175,0,282,68,#PB_Window_SystemMenu|#PB_Window_ScreenCentered,"Demo")
 
Gadget_Main_Anim=PVX::PVGadgets_AnimGadget(hAnimGadget,#Window_Main,0,0,280,65,160)  
 
Repeat  
Until WaitWindowEvent()=#PB_Event_CloseWindow  
PVX::PVGadgets_FreeAnimGadget(hAnimGadget)  
 
EndIf