ctAddHeader: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "Category:Scripting Commands ArmA2" to "Category:Scripting Commands Arma 2")
m (Some wiki formatting)
 
(48 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


|arma3 |= Game
|game1= arma3
|1.70|Game Version=
|version1= 1.70
|arg= local |Multiplayer Arguments=
|eff= local |Multiplayer Effects=
____________________________________________________________________________________________


| Adds a header line of controls according to the HeaderTemplate class. It returns an array containing header index and array of created controls in a format [<headerIndex>, [<control0>, <control1>...<control n>]].
|arg= local
<br>
Note that rows and headers are indexed separately. |DESCRIPTION=
____________________________________________________________________________________________


| [[Array]] <nowiki>=</nowiki> '''ctAddHeader''' [[Control]] |SYNTAX=
|eff= local


|p1= control: [[Control]] |PARAMETER1=
|gr1= GUI Control - Controls Table


| [[Array]] |RETURNVALUE=
|descr= Adds a header line of controls according to the HeaderTemplate class. Note that rows and headers are indexed separately.


____________________________________________________________________________________________
|s1= [[ctAddHeader]] control
 
|x1= <code>_array = [[ctAddHeader]] _control;</code> |EXAMPLE1=


____________________________________________________________________________________________
|p1= control: [[Control]]


| [[ctAddRow]], [[ctClear]], [[ctCurSel]], [[ctSetCurSel]], [[ctRowControls]], [[ctHeaderControls]], [[ctRowCount]], [[ctHeaderCount]], [[ctSetValue]], [[ctValue]], [[ctSetData]], [[ctData]], [[ctFindRowHeader]], [[ctFindHeaderRows]], [[ctRemoveRows]], [[ctRemoveHeaders]], [[ctSetRowTemplate]], [[ctSetHeaderTemplate]] |SEEALSO=
|r1= [[Array]] format [headerIndex, createdControls] where:
* headerIndex: [[Number]]
* createdControls: [[Array]] of [[Control]]s


|x1= <sqf>private _array = ctAddHeader _control;</sqf>
|seealso= [[ctAddRow]] [[ctClear]] [[ctCurSel]] [[ctSetCurSel]] [[ctRowControls]] [[ctHeaderControls]] [[ctRowCount]] [[ctHeaderCount]] [[ctSetValue]] [[ctValue]] [[ctSetData]] [[ctData]] [[ctFindRowHeader]] [[ctFindHeaderRows]] [[ctRemoveRows]] [[ctRemoveHeaders]] [[ctSetRowTemplate]] [[ctSetHeaderTemplate]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|LBADD]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|LBADD]]
[[Category:Scripting Commands ArmA|LBADD]]
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<!-- DISCONTINUE Notes -->

Latest revision as of 13:34, 12 March 2024

Hover & click on the images for description

Description

Description:
Adds a header line of controls according to the HeaderTemplate class. Note that rows and headers are indexed separately.
Groups:
GUI Control - Controls Table

Syntax

Syntax:
ctAddHeader control
Parameters:
control: Control
Return Value:
Array format [headerIndex, createdControls] where:

Examples

Example 1:
private _array = ctAddHeader _control;

Additional Information

See also:
ctAddRow ctClear ctCurSel ctSetCurSel ctRowControls ctHeaderControls ctRowCount ctHeaderCount ctSetValue ctValue ctSetData ctData ctFindRowHeader ctFindHeaderRows ctRemoveRows ctRemoveHeaders ctSetRowTemplate ctSetHeaderTemplate

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