< Previous | Contents | Next >

Attributes

None

Example


InLabel = self:AddInput("This is a Label", "Label1", { LINKID_DataType = "Text",

INPID_InputControl = "LabelControl", INP_External = false,

INP_Passive = true,

})


A LabelControl is also used as a way to toggle the visibility of other controls. To create such a control nest, use the BeginControlNest function. It will create a LabelControl with some additional attributes:


LBLC_DropDownButton = true -- turns a label control into a control nest

LBLC_NumInputs = 2 -- how many of the following inputs will be part of the control nest

LBLC_NestLevel = 1 -- ?


In addition to control nests, a LabelControl can also host the pick button. Set LBLC_PickButton = true and specify the picked inputs using LBLC_NumInputs = <num> (next num inputs), LBLCID_InputGroup = <group id>, or a series of { LBLCP_Input = <input> } tags.