Re: [wxhaskell-users] slider value limit From: Patrick Scheibe - 2005-05-10 09:41:24 ```Hmm, I think you should think about it again. Let us assume you have a slider having the same width like your screen. The smallest step you are able to do is exactly one pixel on the screen. To reach every single value of a int slider that is over your screen you have to have a screen size of 32767 pixels... You should use a int slider and calculate your float values. With a slider of 100 pixels you will never have more than 100 discrete steps. Even when you would have a real-valued slider you would only be able to reach a few points.. What are you trying to do? Cheers Patrick On Tuesday 10 May 2005 04:56, Conal Elliott wrote: > There seems to be a value limit of 32767 for sliders. Does anyone know > a work-around? > > I'm really after a real-valued slider, which I was approximating with an > int slider with inflated values. Does anyone have a real-valued slider? > > - Conal ```
 [wxhaskell-users] slider value limit From: Conal Elliott - 2005-05-10 02:56:25 Attachments: Message as HTML ```There seems to be a value limit of 32767 for sliders. Does anyone know a work-around? I'm really after a real-valued slider, which I was approximating with an int slider with inflated values. Does anyone have a real-valued slider? - Conal ```
 Re: [wxhaskell-users] slider value limit From: Patrick Scheibe - 2005-05-10 09:41:24 ```Hmm, I think you should think about it again. Let us assume you have a slider having the same width like your screen. The smallest step you are able to do is exactly one pixel on the screen. To reach every single value of a int slider that is over your screen you have to have a screen size of 32767 pixels... You should use a int slider and calculate your float values. With a slider of 100 pixels you will never have more than 100 discrete steps. Even when you would have a real-valued slider you would only be able to reach a few points.. What are you trying to do? Cheers Patrick On Tuesday 10 May 2005 04:56, Conal Elliott wrote: > There seems to be a value limit of 32767 for sliders. Does anyone know > a work-around? > > I'm really after a real-valued slider, which I was approximating with an > int slider with inflated values. Does anyone have a real-valued slider? > > - Conal ```