comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » slider size
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: slider size [message #55685 is a reply to message #55541] Mon, 27 August 2007 09:14 Go to previous message
M. Katz is currently offline  M. Katz
Messages: 69
Registered: May 2005
Member
You're working close to the limit of the pixel resolution you have.
Your mouse position, for example, is reported as integers. So when you
drag the slider by one single screen pixel, that's your smallest
increment.

I think one way around this problem is to tie together your slider and
a text-entry box that shows the slider value.
When the user enters a value instead of sliding then you
widget_control the slider to the user-specified value. Likewise, when
the user drags the slider, you widget_control the text field to the
new value. This will allow you to reach any value you want, regardless
of the resolution of the slider on the screen.

It's not really much more complex at all, and there are many ways to
do this.

M. Katz
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Programmatic size adjustment of widgets under Windows vs. UNIX (was "Natural size of explicitly-sized widget")
Next Topic: Re: Cannot install ENVI 4.3 on Ubuntu Linux 7.04 (x86_64)

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Nov 30 11:13:05 PST 2025

Total time taken to generate the page: 0.40403 seconds