Benargee/Sandbox – User
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Command|= | {{Command|= Comment | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| arma |= | | arma |= Gamem | ||
|9000|= | |9000|= Gamersio | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Creates new control in given display. |= | | Creates new control in given display. |= Descrip | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| display '''ctrlCreate''' [class, idc] |= | | display '''ctrlCreate''' [class, idc] |= Synt | ||
|p1= display : [[Display]] |= | |p1= display : [[Display]] |= PARAMET | ||
|p2= class: [[String]] - Existing classname (see [[ctrlCreate/classnames]]) of the new control (currently only [[configFile]] classes are supported) |= | |p2= class: [[String]] - Existing classname (see [[ctrlCreate/classnames]]) of the new control (currently only [[configFile]] classes are supported) |= PARAMER2 | ||
|p3= idc: [[Number]] - IDC of the new control |= | |p3= idc: [[Number]] - IDC of the new control |= PARETER3 | ||
| [[Control]] |= | | [[Control]] |= RETURNVA | ||
|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>|= | |x2= <code>_map = [[findDisplay]] 46 [[ctrlCreate]] ["RscMapControl", -1];</code>|= EXALE2 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[ctrlDelete]], [[ctrlModel]], [[ctrlSetModel]], [[ctrlPosition]], [[ctrlSetPosition]], [[ctrlClassName]], [[ctrlModelScale]], [[ctrlSetModelScale]], [[ctrlModelDirAndUp]], [[ctrlSetModelDirAndUp]] |= | | [[ctrlDelete]], [[ctrlModel]], [[ctrlSetModel]], [[ctrlPosition]], [[ctrlSetPosition]], [[ctrlClassName]], [[ctrlModelScale]], [[ctrlSetModelScale]], [[ctrlModelDirAndUp]], [[ctrlSetModelDirAndUp]] |= SEEASO | ||
| |= MPBEHAVIOUR | | |= MPBEHAVIOUR |
Revision as of 05:23, 19 September 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:
- ctrlDeletectrlModelctrlSetModelctrlPositionctrlSetPositionctrlClassNamectrlModelScalectrlSetModelScalectrlModelDirAndUpctrlSetModelDirAndUp
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