ctrlDelete: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Bot: Reverted to revision 108413 by 7erra on 2018-06-15T20:27:05Z)
m (template:command argument fix)
Line 13: Line 13:
| '''ctrlDelete''' control |= Syntax
| '''ctrlDelete''' control |= Syntax


|p1= control: [[Control]]  |= PARAMETER1
|p1= control: [[Control]]  |PARAMETER1=  


| [[Boolean]]|= RETURNVALUE
| [[Boolean]]|RETURNVALUE=  




|x1= <code>[[ctrlDelete]] (([[findDisplay]] 20000) [[displayCtrl]] 20001);</code>|= EXAMPLE1
|x1= <code>[[ctrlDelete]] (([[findDisplay]] 20000) [[displayCtrl]] 20001);</code>|EXAMPLE1=  


____________________________________________________________________________________________
____________________________________________________________________________________________


| [[ctrlCreate]], [[ctrlModel]], [[ctrlSetModel]], [[ctrlPosition]], [[ctrlSetPosition]], [[ctrlClassName]], [[displayCtrl]], [[ctrlModelScale]], [[ctrlSetModelScale]], [[ctrlModelDirAndUp]], [[ctrlSetModelDirAndUp]]  |= SEEALSO
| [[ctrlCreate]], [[ctrlModel]], [[ctrlSetModel]], [[ctrlPosition]], [[ctrlSetPosition]], [[ctrlClassName]], [[displayCtrl]], [[ctrlModelScale]], [[ctrlSetModelScale]], [[ctrlModelDirAndUp]], [[ctrlSetModelDirAndUp]]  |SEEALSO=  


|  |= MPBEHAVIOUR
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
____________________________________________________________________________________________
}}
}}

Revision as of 10:30, 7 April 2019

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.
Posted on June 15, 2018 - 20:27 (UTC)
7erra
ctrlDelete can indeed delete already existing controls. Though deletable = 1; has to be defined in the controls class