ctrlCreate: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (linked to classnames) |
Killzone Kid (talk | contribs) (example) |
||
Line 22: | Line 22: | ||
|x1= <code>_display [[ctrlCreate]] ["RscText", 1234];</code>|= EXAMPLE1 | |x1= <code>_display [[ctrlCreate]] ["RscText", 1234];</code>|= EXAMPLE1 | ||
|x2= <code>_map = [[findDisplay]] 46 [[ctrlCreate]] ["RscMapControl", -1];</code>|= EXAMPLE2 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 16:42, 30 August 2014
Description
- Description:
- Creates new control in given display.
- Groups:
- Uncategorised
Syntax
- Syntax:
- display ctrlCreate [class, idc]
- 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
- Return Value:
- Control
Examples
- Example 1:
_display ctrlCreate ["RscText", 1234];
- Example 2:
_map = findDisplay 46 ctrlCreate ["RscMapControl", -1];
Additional Information
- See also:
- ctrlDelete
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