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

Home » Public Forums » archive » Re: Problems with CW_FSLIDER
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: Problems with CW_FSLIDER [message #12118 is a reply to message #11983] Tue, 23 June 1998 00:00 Go to previous messageGo to previous message
Alex Schuster is currently offline  Alex Schuster
Messages: 124
Registered: February 1997
Senior Member
Heiko Hünnefeld wrote:

> try your test program again and change line 8 to the following:
>
> axes = CW_FSLIDER(base,VALUE=0.0, $
> MAXIMUM=300.0, MINIMUM=-300.0, /EDIT,FRAME=5)
>
> The effect is, that the current value is set to -300.
> If, however, you change line 8 to
>
> axes = CW_FSLIDER(base,VALUE=53.1, $
> MAXIMUM=300.0, MINIMUM=-300.0, /EDIT,FRAME=5)
>
> it works fine as it should.

It works with any value except for 0.0. Looks like... right, again RSI
uses KEYWORD_SET insteaf of N_ELEMENTS to check for parameters. Hello
RSI, this sucks!!

Our cw_fslider.pro of IDL 4 has this line in it:
IF NOT (KEYWORD_SET(val)) THEN val = min

In IDL 5, is is:
IF N_ELEMENTS(val) EQ 0 THEN val = min

We are using IDL 5.03, so I guess RSI fixed this in this update. Of
course they don't tell us in the modification history of the source
code.

Alex
--
Alex Schuster Wonko@weird.cologne.de PGP Key available
alex@pet.mpin-koeln.mpg.de
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Longword plotting problems...
Next Topic: Q: 3-D objects in spherical coordinates

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

Current Time: Thu Oct 09 07:38:52 PDT 2025

Total time taken to generate the page: 1.83935 seconds