PVGadgets QuickStart
Previous  Top  Next

If you are having problems with any functions from the PVGadgets Module, make sure your Main Events Loop contains the proper functions and code to initialize the PVGadgets and make them work.

If the Gadget or Form you have created needs any of the following, simply copy and paste it into your project.


;This must be called at the start of your program if special Gadget Coloring is used


Procedure WindowCallback(WindowID,Message,wParam,lParam)
ReturnValue=#PB_ProcessPureBasicEvents  
If Message=#WM_CTLCOLORSTATIC Or Message=#WM_CTLCOLOREDIT Or Message=#WM_CTLCOLORLISTBOX  
ReturnValue=PVDynamic_ColorGadget(lParam,wParam)  
EndIf  
ProcedureReturn  ReturnValue  
EndProcedure


;This must be called after your Form has been created
SetWindowCallback(@WindowCallback())






This is inserted into _Constants.pb by PureVision. If you want ot use any of the Functions in the PVGadgets Module without using PureVision, you must place this at the beginning of your Project Source Code...


XIncludeFile "C:/PureVision/Modules/Module_PVGadgets.pbi" ;<-- Modify as needed for path of Modules Folder