ctrlSetURL: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
No edit summary
 
Line 10: Line 10:
* {{hl|CT_SHORTCUTBUTTON}}  
* {{hl|CT_SHORTCUTBUTTON}}  
* {{hl|CT_ACTIVETEXT}}
* {{hl|CT_ACTIVETEXT}}
{{Feature|important|URL should be written in lower case including address prefix. For example {{hl|<nowiki>HTTP://ARMA3.COM/</nowiki>}} will not pass allowed filter validation but {{hl|<nowiki>http://arma3.com/</nowiki>}} will.}}


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


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


|seealso= [[ctrlURL]] [[menuSetURL]]
|seealso= [[ctrlURL]] [[menuSetURL]]
}}
}}

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