Init_PVDynamic ()

Top  Previous  Next

Initializes the PVDynamic size/move engine.

 

Use:

Init_PVDynamic()

 

PureVision automatically adds this to the start of your Event Loop when a project is exported.

 

Init_PVDynamic() is no longer required but is kept for backwards compatability.

 

 

 

A full Initialization & Callback loop in your main source code might look like this:

 

;-Init Includes

Init_PVDynamic()

XIncludeFile "Example_Constants.pb"

XIncludeFile "Example_Windows.pb"

 

 

 

Procedure WindowCallback(WindowID,Message,wParam,lParam)

ReturnValue=#PB_ProcessPureBasicEvents

 

If Message=#WM_GETMINMAXINFO

ReturnValue=PVDynamic_LockWindow(WindowID,lParam)

EndIf

 

If Message=#WM_SIZE

ReturnValue=PVDynamic_Resize(WindowID)

EndIf

 

If Message=#WM_CTLCOLORSTATIC Or Message=#WM_CTLCOLOREDIT Or Message=#WM_CTLCOLORLISTBOX

ReturnValue=PVDynamic_ColorGadget(lParam,wParam)

EndIf

 

ProcedureReturn  ReturnValue

EndProcedure