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 #6704] Thu, 08 August 1996 00:00 Go to previous message
Robert Moss is currently offline  Robert Moss
Messages: 74
Registered: February 1996
Member
Ok, if all you want to do is change the range of values returned by
a cw_fslider() widget, this will definitely work


wid = cw_fslider( ... )

widget_control, widget_info( wid, /child ), get_uvalue = state, /no_copy
state.top = new_max
state.bot = new_min
widget_control, widget_info( wid, /child ), set_uvalue = state, /no_copy

This will not change the label if the value displayed is outside the
new range of values. However, you could do that as well by calculating
what the value should be and using

widget_control, state.labelid, $
set_value = string( new_label, format = state.format )

My apologies for the quick posting earlier which incorrectly said
to change the actual slider min and max limits.

--
Robert M. Moss, Ph.D. - mossrm@texaco.com - FAX (713)954-6911
------------------------------------------------------------ -----
This does not necessarily reflect the opinions of Texaco Inc.
[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 15:33:42 PDT 2025

Total time taken to generate the page: 0.00359 seconds