< Previous | Contents | Next >
Per-button attributes | |
MBTNC_AddButton | Set this attribute to a string which will be used as the label for the button. |
MBTNCD_ButtonWidth | This should be a fractional value between 0 and 1, determining the width of the button. A value of 1.0 would create a button the full width of the control. |
MBTNC_ShowLabel | Enables or disables displaying the button’s name text on the button. |
MBTNC_ShowIcon | Enables or disables displaying the button’s icon on the button. |
MBTNCS_ToolTip | Set this to a string to be displayed when hovering the mouse cursor over the button. |
Control attributes | |
MBTNC_ButtonHeight | This should be an integer value in pixels, determining the height of the buttons. The default value is 26 pixels high. |
MBTNC_StretchToFit | Setting this to true will stretch the buttons equally across the full width of the control. |
MBTNC_ShowName | Setting this to false will hide the name of the control. |
MBTNC_NoIconScaling | Enables or disables scaling of the button’s icon to the full size of the button. |
MBTNC_Type | Can be one of "Normal", "Toggle" or "TriState". |
MBTNC_Align | Can be one of "Center", "Left" or "Right". |
The following fragment shows the creation of a MultiButtonControl with four options.
function Create()
InOperation = self:AddInput("Operation", "Operation", { LINKID_DataType = "Number",
INPID_InputControl = "MultiButtonControl",