ctrlText: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|CTRLTEXT]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|CTRLTEXT]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|CTRLTEXT]]


| ofpr |= Game name


<h2 style="color:#000066"> '''ctrlText ''idc'''''</h2>
|1.5|= Game version


|arg= local |= Arguments in MP
____________________________________________________________________________________________


'''Operand types:'''
| Return the text of a control of the currently active user dialog. This command can be used on static texts, buttons, edit lines and active texts as well as for images, where it returns the image path. Read [[Dialog Control]] for more information about user dialogs and controls. |= Description
____________________________________________________________________________________________


'''idc:''' [[Number]]
| '''ctrlText''' idc |= Syntax


'''Type of returned value:'''
|p1= idc: [[Integer]] - control ID |= Parameter 1


[[String]]
| [[String]] - The text or image path is returned, dependant on the control type. |= Return value
____________________________________________________________________________________________
 
|x1= <pre>ctrlText 100</pre> |= Example 1
____________________________________________________________________________________________


'''Compatibility:'''
| [[ctrlSetText]] |= See also


Added in version '''1.50'''
}}


'''Description:'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


Return text shown in control with id '''idc''' of topmost user [[dialog]].
<!-- Note Section END -->
</dl>


Can be used for static texts, buttons, edit lines and active texts.
<h3 style="display:none">Bottom Section</h3>


 
[[Category:Scripting Commands|CTRLTEXT]]
'''Example:'''
[[Category:Scripting Commands OFP 1.96|CTRLTEXT]]
 
[[Category:Scripting Commands ArmA|CTRLTEXT]]
_message = '''ctrlText''' 100

Revision as of 23:36, 1 August 2006

Hover & click on the images for description

Description

Description:
Return the text of a control of the currently active user dialog. This command can be used on static texts, buttons, edit lines and active texts as well as for images, where it returns the image path. Read Dialog Control for more information about user dialogs and controls.
Groups:
Uncategorised

Syntax

Syntax:
ctrlText idc
Parameters:
idc: Integer - control ID
Return Value:
String - The text or image path is returned, dependant on the control type.

Examples

Example 1:
ctrlText 100

Additional Information

See also:
ctrlSetText

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