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

Home » Public Forums » archive » Re: Changing maximum of slider
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: Changing maximum of slider [message #6713 is a reply to message #6704] Wed, 07 August 1996 00:00 Go to previous messageGo to previous message
Robert Moss is currently offline  Robert Moss
Messages: 74
Registered: February 1996
Member
Ding Wu wrote:
>
>
> If wid=cw_fslider(),
> do you know how to change the max and min ?
>

heh.. this gets tricky. You can try this:

; wid is the widget id of the cw_slider widget
wid = cw_slider( .. )

; x = new slider max, y = new slider min
widget_control, widget_info( wid, /child ), get_uvalue = state, /no_copy
widget_control, state.slideid, set_slider_max = x, set_slider_max = y
state.top = x ;update the cw_slider state structure
state.bot = y
widget_control, widget_info( wid, /child ), set_uvalue = state, /no_copy

I havent tried this, but I'd say its definitely worth a shot...

Robert
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem with create_struct under OpenVMS
Next Topic: Cartography with IDL

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

Current Time: Wed Oct 08 19:59:02 PDT 2025

Total time taken to generate the page: 0.00482 seconds