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 #55621 is a reply to message #55541] Wed, 29 August 2007 21:50 Go to previous messageGo to previous message
Andrew Cool is currently offline  Andrew Cool
Messages: 219
Registered: January 1996
Senior Member
On Aug 29, 10:34 pm, Loren Anderson <andersl...@yahoo.com> wrote:
> 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

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

Shouldn't happen if you click on the left/right buttons that
Discrete_Slider adds,
*when* you use the /END_BUTTONS or /STEP_BUTTONS keywords - I forget
off hand which does what...

Use those buttons, and leave the IDL ones alone, and you'll be in
Heaven...

Andrew
[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: Fri Oct 10 17:04:34 PDT 2025

Total time taken to generate the page: 1.19911 seconds