BIS fnc OM Module initSmallValueSilder: Difference between revisions
| m (Text replacement - "<h3 style="display:none">Bottom Section</h3>" to "<h3 style="display:none">Bottom Section</h3> {{uc:pagename}}") | m (page filled) | ||
| Line 1: | Line 1: | ||
| {{Function | {{Function | ||
| | arma3  | |game1= arma3 | ||
| | 1.98  | |version1= 1.98 | ||
| |  | <!--|serverExec= server--> | ||
| <!--|arg= local--> | |||
| <!--|eff= local--> | |||
| |descr= Initialize slider with edit box showing its value supporting small decimal numbers. | |||
| |  | |s1= [ctrlSlider, ctrlEdit, unit, defaultValue] call [[BIS_fnc_OM_Module_initSmallValueSilder]] | ||
| |p1=  | |p1= ctrlSlider: [[Control]] - Slider Control | ||
| |  | |p2= ctrlEdit: [[Control]] - Edit Control | ||
| | | |p3= unit: [[String]] - (Optional, default "%") Measurement unit added behind the number | ||
| | | | |p4= defaultValue: [[Number]] - (Optional, default nil) When present, only the value is set, functionality is not initialized | ||
| |r1= [[Boolean]] | |||
| |x1= <code>[_ctrlSlider,_ctrlEdit,"m",500] [[call]] [[BIS_fnc_OM_Module_initSmallValueSilder]];//Set default value only.</code> | |||
| |x2= <code>[_ctrlSlider,_ctrlEdit,"m"] [[call]] [[BIS_fnc_OM_Module_initSmallValueSilder]];//Initialize functionality.</code> | |||
| |exec= call | |||
| |seealso= [[BIS_fnc_initSliderValue]] | |||
| }} | |||
Revision as of 08:29, 5 June 2020
Description
- Description:
- Initialize slider with edit box showing its value supporting small decimal numbers.
- Execution:
- call
- Groups:
- Uncategorised
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
 
	