Widget_list and Widget_slider questions [message #1952] |
Mon, 25 April 1994 02:33  |
stl
Messages: 70 Registered: February 1994
|
Member |
|
|
Hello,
one of IDL programmers is trying to access information about the
horizontal scroll bar of a widget list. He has a title for different
text columns within the list, and wishes to be able to scroll the titles
for these column when he scrolls left or right. Is there a way to get
the index or the scroll bar, and or get events for left-right moves.
Yes, I realize this is in most cases way outside of the functionality of
a widget_list, but a title (label) that would move with the data is
reasonable important.
Also, various work arounds discovered some other interesting wuestions.
In a widget_slider, is there a way to specify the 'step distance'. That
is the number of values that the slider jumps over when you click on the
slider, either above or below the slider button. It seems to be some
number that is dependent on the min and max value and possible the
number of pixels the slider occupies (in the direction of the slider;
vertical or horizontal). We are looking for being able to set it to
jump say x, where our X might represent 24 (a page height). If this is
possible, please let me know. (we still want to be able to move
by grabing the slide button)
-stephen Strebel
--
Stephen C Strebel / SKI TO DIE
stl@maz.sma.ch / and
Swiss Meteorological Institute, Zuerich / LIVE TO TELL ABOUT IT
01 256 93 85 / (and pray for snow)
|
|
|
Re: Widget_list and Widget_slider questions [message #2037 is a reply to message #1952] |
Mon, 25 April 1994 07:55  |
8015
Messages: 52 Registered: November 1993
|
Member |
|
|
In article <2pg2ouINN4o9@i32.sma.ch>, Stephen Strebel <stl@sma.ch> wrote:
> Hello,
>
Sorry, can't offer any suggestions with the first problem.
> In a widget_slider, is there a way to specify the 'step distance'.
...
> We are looking for being able to set it to
> jump say x, where our X might represent 24 (a page height). If this is
> possible, please let me know. (we still want to be able to move
> by grabing the slide button)
>
If you're using the OpenLook GUI, the widget_slider documentation says
that you can use the "scroll" keyword to specify the 'step distance'. I
guess this doesn't apply to other GUI's. Otherwise, you may have to do
something using the "suppress_value" keyword of the slider and using a
widget_label for displaying your own values generated by get_value of
the slider and set_value of the label commands when the slider is
moved.
Mike Schienle Hughes Santa Barbara Research Center
mgs@sbjse0.sbrc.hac.com 75 Coromar Drive, M/S B28/87
Voice: (805)562-7466 Fax: (805)562-7881 Goleta, CA 93117
|
|
|