ctrlSetURL: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
No edit summary
 
(18 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


|game1= arma3dev
|game1= arma3
 
|version1= 2.02
|version= 2.01


|gr1= GUI Control
|gr1= GUI Control


|descr= Sets URL property of the given control subject to <tt>allowedHTMLLoadURIs[]</tt> whitelisting in [[CfgCommands]] config. Supported controls are:
|descr= Sets URL property of the given control subject to {{hl|allowedHTMLLoadURIs[]}} whitelisting in [[CfgCommands]] config. Supported controls are:
* <tt>CT_BUTTON</tt>
* {{hl|CT_BUTTON}}
* <tt>CT_SHORTCUTBUTTON</tt>
* {{hl|CT_SHORTCUTBUTTON}}
* <tt>CT_ACTIVETEXT</tt>
* {{hl|CT_ACTIVETEXT}}
 
|mp= |Multiplayer Behaviour=
 
|pr= |Problems=


|s1= control [[ctrlSetURL]] URL
|s1= control [[ctrlSetURL]] URL
Line 23: Line 18:
|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>_control [[ctrlSetURL]] "<nowiki>http://arma3.com/</nowiki>"; // note the forward slash / at the end</code>
|x1= <sqf>_control ctrlSetURL "http://arma3.com/";</sqf>


|seealso= [[ctrlURL]]
|seealso= [[ctrlURL]] [[menuSetURL]]
}}
}}
<dl class="command_description">
<!-- BEGIN Note Section -->
<!-- END Note Section -->
</dl>
<h3 style="display:none">Bottom Section</h3>

Latest revision as of 08: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