The IDLitParameter::SetParameterAttribute procedure method sets one or more parameter attributes for a registered parameter.
Obj->IDLitParameter::SetParameterAttribute(ParamName [, KEYWORD=variable] )
A scalar string or string array containing names of registered parameters. If ParamName is an array, the specified attribute values are set on all parameters in the array.
Any keyword listed under IDLitParameter::RegisterParameter can be retrieved using this method. To retrieve the value of an attribute, specify the attribute name as a keyword set equal to a named variable that will contain the value of the attribute.
This example creates an iPlot tool sets the description attribute of the registered parameter named "vertices":
IPLOT, RANDOMU(seed, 15)
idTool = ITGETCURRENT(TOOL=otool)
idPlot = oTool->FindIdentifiers('*plot*', /VISUALIZATIONS)
oPlot = oTool->GetByIdentifier(idPlot)
oPlot->SetParameterAttribute, 'vertices', $
DESCRIPTION='My Vertex Data'
oPlot->GetParameterAttribute, 'vertices', DESCRIPTION=desc
PRINT, desc
IDL prints:
My Vertex Data
Introduced: 6.1
IDLitParameter::GetParameterAttribute, IDLitParameter::QueryParameter, IDLitParameter::RegisterParameter