VS:vsoInsertParamWidget
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
Description
Inserts a widget into the OI palette.
See the <a href=http://www.vectorlab.info/index.php?title=Events>VectorLab article</a> on object events.
FUNCTION vsoInsertParamWidget(
position :LONGINT;
parameterID :LONGINT;
text :STRING;
data :LONGINT) :BOOLEAN;
def vs.vsoInsertParamWidget(position, parameterID, text, data): return BOOLEAN
Parameters
position LONGINT parameterID LONGINT text STRING data LONGINT
Remarks
This function inserts a widget into the OIP. Unlike the vsoAppendParamWidget which just appends the widget to the end of the OIP, this call allows the user to define the position in the OIP parameter list.
position: the position in OIP parameter list to insert the widget. parameterID: the corresponding ordinal value of the parameter in the object's parameter list.
text: the widget label. data: not implemented yet.
Example
VectorScript
If GetLocalizedPluginParameter('NewModelWindowMain','TopShape',temp_s) then Begin result := vsoInsertParamWidget(1,1,temp_s,eventData); end;
Python
Version
Availability: from All Versions
This is drop-in function.