hiMakeLPChoiceList
hiMakeLPChoiceList(d_techFileID l_layerName&Purpose [ g_layerNum ] [ g_swatchIcon ]) =>l_iconList/ nil
Description
Creates a layer purpose icon list for use in a form field or menu.
Arguments
|
A boolean value specifying whether or not the icon will contain only the layer swatches. No layer description will be available in the new icon if this argument is set to |
|
Value Returned
|
Returns l_icon list if the layer purpose icon list was created. |
|
Example
Creates a layer purpose icon list with two layers, a metal1 drawing layer and a metal2 drawing layer:
iconList = hiMakeLPChoiceList(techFileId list( list("metal1" "drawing") list("metal2" "drawing") )
)
Creates a layer purpose icon list containing all the layers of the specified technology file:
iconList = hiMakeLPChoiceList(techFileId list())
Returns a list containing the icon along with layer and purpose name.The layer and purpose name can be extracted from this list and passed to hiCreateMenuItem as itemText:
l_choices=(hiMakeLPChoiceList (techGetTechFile (getWindowRep)) '(
("y0" "drawing")("y1" "drawing")("y2" "drawing")
)
nil t)
Return to top