| Re: Does the hide-keyword work? [message #17530] |
Sat, 30 October 1999 00:00 |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Karri Kaksonen (karri@twins.dna.fi) writes:
> He told me not to use keyword_set to check if the
> user has entered a keyword. But I forgot...
>
> if keyword_set(hide) then o->setproperty, hide=hide
>
> is obviously not the same as
>
> if n_elements(hide) ne 0 then o->setproperty, hide=hide
Aye, a lesson those of us who don't learn it sooner,
*always* learn later. :-)
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
|
|
|
|
| Re: Does the hide-keyword work? [message #17532 is a reply to message #17530] |
Sat, 30 October 1999 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Karri Kaksonen (karri.kaksonen@picker.fi) writes:
> The keyword that controls the display attribute for the
> graphics is controlled by a keyword "hide"
>
> o->setproperty, hide=1
>
> makes the object invisible :)
>
> o->setproperty, hide=0
>
> does not bring it back :(
>
> Is there a way to bring my object back or did I lose
> it for good?
Humm. Hide=0 works for me. Are you sure you are
redisplaying the view after you set this property?
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
|
|
|
|