ctrlShow: Difference between revisions
Jump to navigation
Jump to search
(updated) |
Dr Eyeball (talk | contribs) (ctrl: Combine IDC/Control variations) |
||
Line 11: | Line 11: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Set if a control of the currently active user dialog is shown or not. Read [[Dialog Control]] for more information about user dialogs and controls. |= Description | | Set if a control of the currently active user dialog is shown or not. | ||
Read [[Dialog Control]] for more information about user dialogs and controls. |= Description | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 20: | Line 22: | ||
|p2= idc: [[Integer]] - control ID |= Parameter 2 | |p2= idc: [[Integer]] - control ID |= Parameter 2 | ||
|p3= show | |p3= show: [[Boolean]] - true if the control should be shown, false if not |= Parameter 3 | ||
| [[Nothing]] |= Return value | | [[Nothing]] |= Return value | ||
____________________________________________________________________________________________ | |||
|s2= controlName '''ctrlShow''' show |= Alternative Syntax | |||
|p21= controlName: [[Control]] |= | |||
|p22= show: [[Boolean]] |= | |||
|r2= [[Nothing]] |= Return value | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <pre>ctrlShow [100,false]</pre> |= Example 1 | |x1= <pre>ctrlShow [100, false]</pre> |= Example 1 | ||
|x2= <pre>_control ctrlShow false</pre> |= Example 2 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 02:02, 23 June 2009
Description
- Description:
- Set if a control of the currently active user dialog is shown or not. Read Dialog Control for more information about user dialogs and controls.
- Groups:
- Uncategorised
Syntax
- Syntax:
- ctrlShow [idc, show]
- Parameters:
- [idc, show]: Array
- idc: Integer - control ID
- show: Boolean - true if the control should be shown, false if not
- Return Value:
- Nothing
Alternative Syntax
- Syntax:
- controlName ctrlShow show
- Parameters:
- controlName: Control
- show: Boolean
- Return Value:
- Nothing
Examples
- Example 1:
ctrlShow [100, false]
- Example 2:
_control ctrlShow false
Additional Information
- See also:
- ctrlVisible
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
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.5
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Local Effect
- Scripting Commands OFP 1.96
- Scripting Commands ArmA
- Command Group: GUI Control
- Scripting Commands ArmA2