ctAddHeader: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
m (Some wiki formatting)
 
(10 intermediate revisions by the same user not shown)
Line 10: Line 10:
|gr1= GUI Control - Controls Table
|gr1= GUI Control - Controls Table


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


|s1= [[ctAddHeader]] control
|s1= [[ctAddHeader]] control
Line 19: Line 16:
|p1= control: [[Control]]
|p1= control: [[Control]]


|r1= [[Array]]
|r1= [[Array]] format [headerIndex, createdControls] where:
* headerIndex: [[Number]]
* createdControls: [[Array]] of [[Control]]s


|x1= <code>_array = [[ctAddHeader]] _control;</code>
|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]]
|seealso= [[ctAddRow]] [[ctClear]] [[ctCurSel]] [[ctSetCurSel]] [[ctRowControls]] [[ctHeaderControls]] [[ctRowCount]] [[ctHeaderCount]] [[ctSetValue]] [[ctValue]] [[ctSetData]] [[ctData]] [[ctFindRowHeader]] [[ctFindHeaderRows]] [[ctRemoveRows]] [[ctRemoveHeaders]] [[ctSetRowTemplate]] [[ctSetHeaderTemplate]]
}}
}}

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