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 #55638 is a reply to message #55541] Wed, 29 August 2007 06:34 Go to previous messageGo to previous message
Loren Anderson is currently offline  Loren Anderson
Messages: 22
Registered: August 2007
Junior Member
Thanks! That's a very cool little program. I'll have to try out all
the options, but I still seem to have the same problem - if I want
each mouse drag of one pixel to be one step, the slider size specified
with "XSIZE" isn't large enough. For example, in this call to
descrete_slider,

Slider = DISCRETE_SLIDER(tlbID,/DRAG,/step, increment = 1, MIN = 1,
MAX = 400, XSIZE = 400)

the slider will skip a bunch of values (6, 17, 28, etc).


In thinking about this for a while, I have come up with two solutions
1) Just make the XSize larger than I need (37 pixels for my machine -
maybe more for windows (?)). Then I could use the descrete_slider
program.
2) Somehow find out how much larger the slider needs to be by creating
a slider and using tlb_get_size, then resizing the slider
appropriately. This should work, but I can't seem to figure it out.

What I'm worried about is that the sliders may have different sizes on
different machines, not just on different platforms, which is why #2
would be better. #1 would be a lot easier though!

-Loren
[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: Wed Oct 08 19:04:06 PDT 2025

Total time taken to generate the page: 0.00422 seconds