ctrlDelete: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|s([0-9])\= '''([^' ]+)'''([^ ]+) " to "|s$1= $2$3 ") |
Lou Montana (talk | contribs) m (Text replacement - "<tt>([a-zA-Z0-9\. _"']+)<\/tt>" to "{{hl|$1}}") |
||
Line 6: | Line 6: | ||
|gr1= GUI Control | |gr1= GUI Control | ||
|descr= 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 [[true]]. Use [[ctrlShow]] [[false]] and [[ctrlEnable]] [[false]] to disable controls that cannot be deleted. Returns [[Boolean]] indicating whether the deletion was successful. | ||
|s1= [[ctrlDelete]] control | |s1= [[ctrlDelete]] control |
Revision as of 23:45, 15 November 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
- Syntax:
- ctrlDelete control
- Parameters:
- control: Control
- Return Value:
- Boolean
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