BIS fnc OM Module initSmallValueSilder: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision imported)
m (Text replacement - "\|game([0-9])=([^ ]+) * \|version([0-9])=([^ ]+) * " to "|game$1=$2 |version$3=$4 ")
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|Comments=
|game1= arma3
____________________________________________________________________________________________
|version1= 1.98


| arma3 |Game name=
|gr1= Old Man


| 1.98 |Game version=
|descr= Initialize slider with edit box showing its value supporting small decimal numbers.
____________________________________________________________________________________________


| <pre>/*
|s1= [ctrlSlider, ctrlEdit, unit, defaultValue] call [[BIS_fnc_OM_Module_initSmallValueSilder]]


Description:
|p1= ctrlSlider: [[Control]] - Slider Control
Initialize slider with edit box showing its value
supporting small decimal numbers


Parameter(s):
|p2= ctrlEdit: [[Control]] - Edit Control
0: CONTROL - slider
1: CONTROL - edit box
2: STRING - measurement unit added behind the number ("%" by default)
3: NUMBER - default value. When present, only the value is set, functionality is not initialized


Returns:
|p3= unit: [[String]] - (Optional, default "%") Measurement unit added behind the number
NOTHING
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |Description=
|p4= defaultValue: [[Number]] - (Optional, default nil) When present, only the value is set, functionality is not initialized
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_OM_Module_initSmallValueSilder]]; --> |Syntax=
|r1= [[Boolean]]


|p1= |Parameter 1=
|x1= <code>[_ctrlSlider,_ctrlEdit,"m",500] [[call]] [[BIS_fnc_OM_Module_initSmallValueSilder]];//Set default value only.</code>


| |Return value=
|x2= <code>[_ctrlSlider,_ctrlEdit,"m"] [[call]] [[BIS_fnc_OM_Module_initSmallValueSilder]];//Initialize functionality.</code>
____________________________________________________________________________________________


|x1= <code></code> |Example 1=
|seealso= [[BIS_fnc_initSliderValue]]
____________________________________________________________________________________________
 
| |See also=
}}
}}
<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:Function Group: Systems|{{uc:OM_Module_initSmallValueSilder}}]]

Revision as of 11:09, 14 June 2021

Hover & click on the images for description

Description

Description:
Initialize slider with edit box showing its value supporting small decimal numbers.
Execution:
call
Groups:
Old Man

Syntax

Syntax:
[ctrlSlider, ctrlEdit, unit, defaultValue] call BIS_fnc_OM_Module_initSmallValueSilder
Parameters:
ctrlSlider: Control - Slider Control
ctrlEdit: Control - Edit Control
unit: String - (Optional, default "%") Measurement unit added behind the number
defaultValue: Number - (Optional, default nil) When present, only the value is set, functionality is not initialized
Return Value:
Boolean

Examples

Example 1:
[_ctrlSlider,_ctrlEdit,"m",500] call BIS_fnc_OM_Module_initSmallValueSilder;//Set default value only.
Example 2:
[_ctrlSlider,_ctrlEdit,"m"] call BIS_fnc_OM_Module_initSmallValueSilder;//Initialize functionality.

Additional Information

See also:
BIS_fnc_initSliderValue

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