ctrlSetURL: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
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...)
Line 1: Line 1:
{{Command
{{Command


|game1= arma3dev |Game name=
|game1= arma3dev


|version= 2.01 |Game version=
|version= 2.01


|gr1= GUI Control |GROUP1=
|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 <tt>allowedHTMLLoadURIs[]</tt> whitelisting in [[CfgCommands]] config. Supported controls are:
* <tt>CT_BUTTON</tt>
* <tt>CT_BUTTON</tt>
* <tt>CT_SHORTCUTBUTTON</tt>  
* <tt>CT_SHORTCUTBUTTON</tt>  
* <tt>CT_ACTIVETEXT</tt> |Description=
* <tt>CT_ACTIVETEXT</tt>


|mp= |Multiplayer Behaviour=
|mp= |Multiplayer Behaviour=
Line 16: Line 16:
|pr= |Problems=
|pr= |Problems=


|s1= control [[ctrlSetURL]] URL|Syntax=
|s1= control [[ctrlSetURL]] URL


|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>"; // note the forward slash / at the end</code> |Example 1=
|x1= <code>_control [[ctrlSetURL]] "<nowiki>http://arma3.com/</nowiki>"; // note the forward slash / at the end</code>


|seealso= [[ctrlURL]]|See Also=
|seealso= [[ctrlURL]]
}}
}}



Revision as of 00:29, 18 January 2021

-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version |?]]
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/"; // note the forward slash / at the end

Additional Information

See also:
ctrlURL

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

[[Category:Introduced with arma3dev version ]][[ Category: arma3dev: New Scripting Commands | CTRLSETURL]][[ Category: arma3dev: Scripting Commands | CTRLSETURL]]

Bottom Section