ctrlSetURL: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|Game version=" to "|Game version= |gr1= GUI Control |GROUP1= ")
No edit summary
 
(25 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


|game1= arma3dev |Game name=
|game1= arma3
|version1= 2.02


|version= 2.01 |Game version=
|gr1= GUI Control


|gr1= GUI Control |GROUP1=
|descr= Sets URL property of the given control subject to {{hl|allowedHTMLLoadURIs[]}} whitelisting in [[CfgCommands]] config. Supported controls are:
* {{hl|CT_BUTTON}}
* {{hl|CT_SHORTCUTBUTTON}}
* {{hl|CT_ACTIVETEXT}}


 
|s1= control [[ctrlSetURL]] URL
____________________________________________________________________________________________
 
|descr= Sets URL property of the given control subject to <tt>allowedHTMLLoadURIs[]</tt> whitelisting in [[CfgCommands]] config. Supported controls are:
* <tt>CT_BUTTON</tt>
* <tt>CT_SHORTCUTBUTTON</tt>
* <tt>CT_ACTIVETEXT</tt>  |Description=
 
|mp= |Multiplayer Behaviour=
 
|pr= |Problems=
 
|gr1= GUI Control|=GROUP1
____________________________________________________________________________________________
 
|s1= control [[ctrlSetURL]] URL|Syntax=


|p1= control: [[Control]]
|p1= control: [[Control]]
|p2= URL: [[String]]
|p2= URL: [[String]]


|r1= [[Nothing]] |Return Value=
|r1= [[Nothing]]
____________________________________________________________________________________________


|x1= <code>_control [[ctrlSetURL]] "<nowiki>http://arma3.com/</nowiki>"</code> |Example 1=
|x1= <sqf>_control ctrlSetURL "http://arma3.com/";</sqf>
____________________________________________________________________________________________


|seealso= |See Also=
|seealso= [[ctrlURL]] [[menuSetURL]]
}}
}}
<dl class="command_description">
<!-- BEGIN Note Section -->
<!-- END Note Section -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]

Latest revision as of 09:02, 3 July 2022

Hover & click on the images for description

Description

Description:
Sets URL property of the given control subject to allowedHTMLLoadURIs[] whitelisting in CfgCommands config. Supported controls are:
  • CT_BUTTON
  • CT_SHORTCUTBUTTON
  • CT_ACTIVETEXT
Groups:
GUI Control

Syntax

Syntax:
control ctrlSetURL URL
Parameters:
control: Control
URL: String
Return Value:
Nothing

Examples

Example 1:
_control ctrlSetURL "http://arma3.com/";

Additional Information

See also:
ctrlURL menuSetURL

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