ctrlMapScale: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(format, seealso, removed ancient note)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Return the current scale of the map control.  |= Description
| Returns the current scale of given map control.  |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Number]] <nowiki>=</nowiki>  '''ctrlMapScale''' controlName|= Syntax
| '''ctrlMapScale''' ctrl|= Syntax


|p1=  controlName: [[Control]] |= Parameter 1
|p1=  ctrl: [[Control]] |= Parameter 1


| [[Number]] |= Return value
| [[Number]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>_control = ([[findDisplay]] 12) [[displayCtrl]] 51 //Arma 3
|x1= <code>_control = ([[findDisplay]] 12) [[displayCtrl]] 51; //Arma 3
_scale = [[ctrlMapScale]] _control//returns number from 1 to 0.001</code>|= Example 1
_scale = [[ctrlMapScale]] _control; //returns number from 1 to 0.001</code>|= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


|= See also
| [[ctrlScale]], [[ctrlSetScale]] |= See also


}}
}}


<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
-[[User:Giova|Giova]] 16:53, 23 January 2007 (CET) :  this command doesn't works under arma v1.02, it allways return: 1
<!-- Note Section END -->
</dl>


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>

Revision as of 12:48, 10 February 2015

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Returns the current scale of given map control.
Groups:
Uncategorised

Syntax

Syntax:
ctrlMapScale ctrl
Parameters:
ctrl: Control
Return Value:
Number

Examples

Example 1:
_control = (findDisplay 12) displayCtrl 51; //Arma 3 _scale = ctrlMapScale _control; //returns number from 1 to 0.001

Additional Information

See also:
ctrlScalectrlSetScale

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


Bottom Section