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

Home » Public Forums » archive » Re: change widget slider maximum dynamically?
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: change widget slider maximum dynamically? [message #17593 is a reply to message #17588] Tue, 02 November 1999 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Rob Dimeo (robert.dimeo@nist.gov) writes:

> No doubt someone has probably figured this one out some time ago.
> However can anyone help me with using the widget slider control? In
> particular I would like to be able to set the maximum value of the
> widget slider dynamically (i.e. after the slider has been realized). I
> would like to set the maximum value of the slider at the conclusion of
> reading in a data set. Since a new data set may contain a different
> number of "groups" then the first one then it would be ideal to simply
> update the maximum in the slider.

I was just looking at a piece of code I have that does
exactly this. I resorted to destroying the old slider
and recreating a new one with a new maximum value.
I'm not a big fan of destroying any widget except the
top-level base (I guess because I got hurt so bad
when widgets first came out years ago), but this
worked wonderfully well in my Windows application
and I think it is reasonably safe to do now on
most platforms.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: point_lun question
Next Topic: high priority interupt event

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

Current Time: Wed Oct 08 13:07:00 PDT 2025

Total time taken to generate the page: 0.00453 seconds