ctrlDelete: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(Undo revision 103924 by Yuval (talk) Crashes should be reported on feedback tracker so that they can be resolved promptly)
Line 47: Line 47:
<dd class="note">
<dd class="note">
[[ctrlDelete]] can only delete controls created with [[ctrlCreate]]. Use [[ctrlShow]] [[false]] and [[ctrlEnable]] [[false]] to disable existing controls.
[[ctrlDelete]] can only delete controls created with [[ctrlCreate]]. Use [[ctrlShow]] [[false]] and [[ctrlEnable]] [[false]] to disable existing controls.
</dd>
</dl>
<!-- DISCONTINUE Notes -->
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on July 19, 2017 - 10:05 (UTC)</dd>
<dt class="note">[[User:Yuval|Yuval]]</dt>
<dd class="note">
Deleting a populated RscControlsGroup (or a child control of a group) seems to crash the game. Use KillzoneKid's workaround of <code>_ctrl ctrlEnable false</code> and <code>_ctrl ctrlShow false</code>
</dd>
</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->
<!-- DISCONTINUE Notes -->

Revision as of 13:49, 20 July 2017

Hover & click on the images for description

Description

Description:
Deletes given control.
Returns whether the deletion was successful.
Groups:
Uncategorised

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

Notes

Bottom Section

Posted on April 18, 2015 - 11:08 (UTC)
Killzone Kid
ctrlDelete can only delete controls created with ctrlCreate. Use ctrlShow false and ctrlEnable false to disable existing controls.