ctrlCreate: Difference between revisions
Jump to navigation
Jump to search
(I don't know what happened, but the behavior I experienced in my first note is now gone. Changing my note to something more constructive.) |
Killzone Kid (talk | contribs) (see also) |
||
Line 28: | Line 28: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[allControls]], [[allDisplays]], [[controlsGroupCtrl]], [[ctrlDelete]], [[ctrlModel]], [[ctrlSetModel]], [[ctrlPosition]], [[ctrlSetPosition]], [[ctrlClassName]], [[ctrlModelScale]], [[ctrlSetModelScale]], [[ctrlModelDirAndUp]], [[ctrlSetModelDirAndUp]] |= SEEALSO | | [[allControls]], [[allDisplays]], [[controlsGroupCtrl]], [[ctrlDelete]], [[ctrlModel]], [[ctrlSetModel]], [[ctrlPosition]], [[ctrlSetPosition]], [[ctrlClassName]], [[ctrlModelScale]], [[ctrlSetModelScale]], [[ctrlModelDirAndUp]], [[ctrlSetModelDirAndUp]], [[displayParent]] |= SEEALSO | ||
| |= MPBEHAVIOUR | | |= MPBEHAVIOUR |
Revision as of 19:43, 17 February 2016
Description
- Description:
- Creates new control in given display.
- Groups:
- Uncategorised
Syntax
- Syntax:
- display ctrlCreate [class, idc, controlsGroup]
- Parameters:
- display : Display
- class: String - Existing classname (see ctrlCreate/classnames) of the new control (currently only configFile classes are supported)
- idc: Number - IDC of the new control
- controlsGroup: Control - (Optional) Since Arma 3 v1.33.127680, it is possible to create controls in existing controls groups.
- Return Value:
- Control
Examples
- Example 1:
_display ctrlCreate ["RscText", 1234];
- Example 2:
_map = findDisplay 46 ctrlCreate ["RscMapControl", -1];
- Example 3:
myControl = findDisplay 0 ctrlCreate ["RscText", 1234, findDisplay 0 displayCtrl 2300];
Additional Information
- See also:
- allControlsallDisplayscontrolsGroupCtrlctrlDeletectrlModelctrlSetModelctrlPositionctrlSetPositionctrlClassNamectrlModelScalectrlSetModelScalectrlModelDirAndUpctrlSetModelDirAndUpdisplayParent
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Notes
Bottom Section
- Posted on December 30, 2015 - 01:48 (UTC)
- Molaron
- "RscListBox" created via ctrlCreate is buggy, you can only select the first seven items.
- Posted on February 6, 2016 - 20:58 (UTC)
- DreadedEntity
- Although you can only dynamically create controls using BIS's configs, there are many commands to change certain aspects of each created control. See GUI Control