vertical slider in Windows an MacOS

my little app is coming along nicely, but …
I have a vertical slider to set a value
in windows max value is at the bottom
in MacOS it’s at the top

is this expected behaviour?
do I really have to ask what OS and fix it in code?

For some reason, Microsoft elected to have a vertical slider that has its maximum value at the bottom. So what you get under Windows is the standard.

That said, Windows UI rules are somewhat more flexibles than Apple, and in Microsoft developer network the answer is, simplified “if you like it better the other way, suit yourself”. In other words, several people found it illogical to increase by going down and where not discouraged to reverse the way.

You can easily change the sense of increase with something like

In the slider Open event

#If TargetWin32 then myControl.Value = MyControl.Maximum #Elseif TargetMacOSX myControl.Value = 0 #Endif

Elsewhere in the code where you use the slider.value, switch to a variable, such as myControlValue

#If TargetWin32 then myControlValue = MyControl.Maximum-MyControl.Value #Elseif TargetMacOSX myControlValue = MyControl.Value #Endif

thanks for confirming that Michel
and for the code snippet - excellent