![]() |
MKI_DialogInitSlider (Dialogs) Changed in Version 2025.0 |
www.CAD6.com |
C++ Syntaxbool MKI_DialogInitSlider( HWND f_hWindow, __int32 f_nCtlID, __int32 f_nMin, __int32 f_nMax, const double f_dValue );
This procedure sets the range and current value of a horizontal slider control.
Windows 11 no longer supports scrollbars in a decent way (as the arrows are hidden unless hovered above) and official spin controls cannot be unlimited or use double values. So we replaced most scrollbars in dialog windows with sliders or custom spin controls made out of a '+' and a '–' button. We encourage you to use those replacements, too.
Parametersf_hWindow [HWND] Handle of the dialog window that contains the slider control. f_nCtlID [__int32] Identification number of the slider control to be initialized. f_nMin [__int32] Minimum range value assigned to the left end of the slider. f_nMax [__int32] Maximum range value assigned to the right end of the slider. f_dValue [double] Value to set the slider's current position to, will be rounded to the nearest integer value.
Return ValueReturns true if the slider was successfully initialized, else false.
|
CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH