BIS fnc OM Module initSmallValueSilder: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *S([a-z ])" to "$1 - s$2") |
||
(5 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
|s1= [ctrlSlider, ctrlEdit, unit, defaultValue] call [[BIS_fnc_OM_Module_initSmallValueSilder]] | |s1= [ctrlSlider, ctrlEdit, unit, defaultValue] call [[BIS_fnc_OM_Module_initSmallValueSilder]] | ||
|p1= ctrlSlider: [[Control]] - | |p1= ctrlSlider: [[Control]] - slider Control | ||
|p2= ctrlEdit: [[Control]] - | |p2= ctrlEdit: [[Control]] - edit Control | ||
|p3= unit: [[String]] - (Optional, default "%") | |p3= unit: [[String]] - (Optional, default "%") measurement unit added behind the number | ||
|p4= defaultValue: [[Number]] - (Optional, default nil) | |p4= defaultValue: [[Number]] - (Optional, default nil) when present, only the value is set, functionality is not initialized | ||
|r1= [[Boolean]] | |r1= [[Boolean]] | ||
|x1= < | |x1= <sqf>[_ctrlSlider,_ctrlEdit,"m",500] call BIS_fnc_OM_Module_initSmallValueSilder;//Set default value only.</sqf> | ||
|x2= < | |x2= <sqf>[_ctrlSlider,_ctrlEdit,"m"] call BIS_fnc_OM_Module_initSmallValueSilder;//Initialize functionality.</sqf> | ||
|seealso= [[BIS_fnc_initSliderValue]] | |seealso= [[BIS_fnc_initSliderValue]] | ||
}} | }} |
Latest revision as of 15:49, 8 November 2023
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:
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