PV_PluginsGadgetType (Type.s)
Previous  Top  Next

Creates and adds the specified Gadget Type to the Plugin Window.

This function MUST be called before calling any of the other PluginGadget functions.

Type
TextGadget
ButtonGadget
StringGadget
...
any valid Gadget available in PureVision (excluding Container type Gadgets)




Example:

XIncludeFile "../Modules/Module_PVPlugins.pbi" ;<-- Modify as needed for path of Modules Folder

Result=PV_PluginsInfo("Test",1,2,"Simple Test Plugin","2005 Reel Media Productions")

If Result
PV_PluginsWindowName("TestForm")
PV_PluginsWindowTitle("Created with Plugin")
PV_PluginsWindowX(80)
PV_PluginsWindowY(80)
PV_PluginsWindowW(300)
PV_PluginsWindowH(200)
PV_PluginsWindowBGColor(RGB(0,0,150))


PV_PluginsGadgetType("ButtonGadget")

PV_PluginsGadgetName("TestButton")
PV_PluginsGadgetText("Click Here")
PV_PluginsGadgetX(10)
PV_PluginsGadgetY(10)
PV_PluginsGadgetW(80)
PV_PluginsGadgetH(20)
EndIf

PV_Plugins()