ctData: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
m (Fixed example)
 
(7 intermediate revisions by one other user not shown)
Line 8: Line 8:
|gr1= GUI Control - Controls Table
|gr1= GUI Control - Controls Table


|descr= Returns metadata (string) associated with a particular row of RscControlsTable.
|descr= Returns metadata associated with a particular row of a [[CT_CONTROLS_TABLE]] control.


|s1= ctrl [[ctData]] row
|s1= ctrl [[ctData]] row


|p1= ctrl: [[Control]] - The respective control
|p1= ctrl: [[Control]] - the respective control
|p2= row: [[Number]] - The row index
|p2= row: [[Number]] - the row index


|r1= [[String]]
|r1= [[String]]


|x1= <code>[[ctData]] _control;</code>
|x1= <sqf>private _data = _ctrl ctData 0;</sqf>


|seealso= [[ctAddRow]] [[ctAddHeader]] [[ctClear]] [[ctCurSel]] [[ctSetCurSel]] [[ctRowControls]] [[ctHeaderControls]] [[ctRowCount]] [[ctHeaderCount]] [[ctSetValue]] [[ctValue]], [[ctSetData]], [[ctFindRowHeader]], [[ctFindHeaderRows]], [[ctRemoveRows]], [[ctRemoveHeaders]], [[ctSetRowTemplate]], [[ctSetHeaderTemplate]]
|seealso= [[ctAddRow]] [[ctAddHeader]] [[ctClear]] [[ctCurSel]] [[ctSetCurSel]] [[ctRowControls]] [[ctHeaderControls]] [[ctRowCount]] [[ctHeaderCount]] [[ctSetValue]] [[ctValue]] [[ctSetData]] [[ctFindRowHeader]] [[ctFindHeaderRows]] [[ctRemoveRows]] [[ctRemoveHeaders]] [[ctSetRowTemplate]] [[ctSetHeaderTemplate]]
}}
}}

Latest revision as of 16:25, 30 April 2022

Hover & click on the images for description

Description

Description:
Returns metadata associated with a particular row of a CT_CONTROLS_TABLE control.
Groups:
GUI Control - Controls Table

Syntax

Syntax:
ctrl ctData row
Parameters:
ctrl: Control - the respective control
row: Number - the row index
Return Value:
String

Examples

Example 1:
private _data = _ctrl ctData 0;

Additional Information

See also:
ctAddRow ctAddHeader ctClear ctCurSel ctSetCurSel ctRowControls ctHeaderControls ctRowCount ctHeaderCount ctSetValue ctValue ctSetData 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