ctrlHTMLLoaded: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Bot: Replacing category Scripting Commands Arma 3 with Arma 3: Scripting Commands)
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(43 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 0.50


|0.50|= Game version
|gr1= GUI Control - HTML
____________________________________________________________________________________________


| Returns [[true]] when HTML content was successfully loaded. |= Description
|descr= Returns [[true]] when HTML content was successfully loaded.
____________________________________________________________________________________________


| '''ctrlHTMLLoaded''' control |= Syntax
|s1= [[ctrlHTMLLoaded]] control


|p1= control: [[Control]] |= PARAMETER1
|p1= control: [[Control]]


| [[Boolean]] |= RETURNVALUE
|r1= [[Boolean]]


 
|x1= <sqf>
|x1= <code>_control [[htmlLoad]] "test.html";
_control htmlLoad "test.html";
[[if]] (![[ctrlHTMLLoaded]] _control) [[then]] {
if (!ctrlHTMLLoaded _control) then {
    [[hint]] "Loading test.html failed!";
hint "Loading test.html failed!";
};
};
</code>|= EXAMPLE1
</sqf>
 
____________________________________________________________________________________________
 
| [[htmlLoad]], [[Dialog Control]] |= SEEALSO


| |= MPBEHAVIOUR
|seealso= [[htmlLoad]] [[Arma: GUI Configuration]]
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Arma 3: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Arma 3: Scripting Commands]]
[[Category:Command Group: GUI Control|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11:35, 3 September 2024

Hover & click on the images for description

Description

Description:
Returns true when HTML content was successfully loaded.
Groups:
GUI Control - HTML

Syntax

Syntax:
ctrlHTMLLoaded control
Parameters:
control: Control
Return Value:
Boolean

Examples

Example 1:
_control htmlLoad "test.html"; if (!ctrlHTMLLoaded _control) then { hint "Loading test.html failed!"; };

Additional Information

See also:
htmlLoad Arma: GUI Configuration

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