ctrlDelete: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects? in MP|M...) |
(warning about deleting controls in a UIEH) |
||
(30 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma3 | |game1= arma3 | ||
|version1= 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 | |descr= Deletes given control. The control has to be created either by script with [[ctrlCreate]] or to have {{hl|deletable}} property in config set to 1. Use [[ctrlShow]] [[false]] and [[ctrlEnable]] [[false]] to disable controls that cannot be deleted. Returns [[Boolean]] indicating whether the deletion was successful. | ||
{{Feature|warning|Using [[ctrlDelete]] in a [[User_Interface_Event_Handlers|UI eventhandler]] called by the to be deleted control will crash the game! This also happens when a controls group is deleted that contains the "calling" control.}} | |||
| | |s1= [[ctrlDelete]] control | ||
|p1= control: [[Control]] | |p1= control: [[Control]] | ||
| [[Boolean]] | |r1= [[Boolean]] | ||
|x1= <sqf>ctrlDelete ((findDisplay 20000) displayCtrl 20001);</sqf> | |||
| [[ctrlCreate]] | |seealso= [[ctrlCreate]] [[ctrlModel]] [[ctrlSetModel]] [[ctrlPosition]] [[ctrlSetPosition]] [[ctrlClassName]] [[displayCtrl]] [[ctrlModelScale]] [[ctrlSetModelScale]] [[ctrlModelDirAndUp]] [[ctrlSetModelDirAndUp]] | ||
}} | }} | ||
Latest revision as of 20:30, 5 February 2023
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 1. 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
- Syntax:
- ctrlDelete control
- Parameters:
- control: Control
- Return Value:
- Boolean
Examples
- Example 1:
Additional Information
- See also:
- ctrlCreate ctrlModel ctrlSetModel ctrlPosition ctrlSetPosition ctrlClassName displayCtrl ctrlModelScale ctrlSetModelScale ctrlModelDirAndUp ctrlSetModelDirAndUp
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