Rounding problem for slider bar
Well I am using the slider bar activex control and trying to use a button as a meter bar by adjusting the width. My slider has an min of - and max of 100. I am dividing that value by 100 and then multiplying that decimal by the max width of the button but is not working under 100 percent.
This
Round((GetValue( "Microsoft Slider Control 6.0 (SP6)" )/100)*318)
Is only working at 100 percent everything else does not show. I am sure its a problem with the decimals but I cannot figure it out even after looking at some posts. I have tried it with and without the round command. Can someone here please point out what I am doing wrong ?
Thanks in advance
Rage
Re: Rounding problem for slider bar
Add .0 to the end of either the 100 or the 318 (maybe both, can't remember)
Re: Rounding problem for slider bar
Perfect that did the trick. Thanks a lot!
Re: Rounding problem for slider bar
why use an active X slider ? use the sliderbar object ?
Re: Rounding problem for slider bar
I think that makes it fit the windows theme, so it won't look like windows 2000 when you have XP.
Re: Rounding problem for slider bar
i just made a new MMF 1.5 application, turned on XP theme, inserted the sliderbar object and ran it. It is XP theme