ctrlDelete: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma3 | | arma3 | ||
|1.26 | |1.26 | ||
|gr1= GUI Control | |gr1= GUI Control | ||
| Deletes given control. The control has to be created either by script with [[ctrlCreate]] or to have <tt>deletable</tt> property in config set to [[true]]. Use [[ctrlShow]] [[false]] and [[ctrlEnable]] [[false]] to disable controls that cannot be deleted. Returns [[Boolean]] indicating whether the deletion was successful. | | Deletes given control. The control has to be created either by script with [[ctrlCreate]] or to have <tt>deletable</tt> property in config set to [[true]]. Use [[ctrlShow]] [[false]] and [[ctrlEnable]] [[false]] to disable controls that cannot be deleted. Returns [[Boolean]] indicating whether the deletion was successful. | ||
| '''ctrlDelete''' control | | '''ctrlDelete''' control | ||
|p1= control: [[Control]] | |p1= control: [[Control]] | ||
| [[Boolean]] | | [[Boolean]] | ||
|x1= <code>[[ctrlDelete]] (([[findDisplay]] 20000) [[displayCtrl]] 20001);</code> | |x1= <code>[[ctrlDelete]] (([[findDisplay]] 20000) [[displayCtrl]] 20001);</code> | ||
| [[ctrlCreate]], [[ctrlModel]], [[ctrlSetModel]], [[ctrlPosition]], [[ctrlSetPosition]], [[ctrlClassName]], [[displayCtrl]], [[ctrlModelScale]], [[ctrlSetModelScale]], [[ctrlModelDirAndUp]], [[ctrlSetModelDirAndUp]] | | [[ctrlCreate]], [[ctrlModel]], [[ctrlSetModel]], [[ctrlPosition]], [[ctrlSetPosition]], [[ctrlClassName]], [[displayCtrl]], [[ctrlModelScale]], [[ctrlSetModelScale]], [[ctrlModelDirAndUp]], [[ctrlSetModelDirAndUp]] | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 00:29, 18 January 2021
Description
- Description:
- Deletes given control. The control has to be created either by script with ctrlCreate or to have deletable property in config set to true. Use ctrlShow false and ctrlEnable false to disable controls that cannot be deleted. Returns Boolean indicating whether the deletion was successful.
- Groups:
- GUI Control
Syntax
Examples
- Example 1:
ctrlDelete ((findDisplay 20000) displayCtrl 20001);
Additional Information
- See also:
- ctrlCreatectrlModelctrlSetModelctrlPositionctrlSetPositionctrlClassNamedisplayCtrlctrlModelScalectrlSetModelScalectrlModelDirAndUpctrlSetModelDirAndUp
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