Does the hide-keyword work? [message #17534] |
Sat, 30 October 1999 00:00  |
Karri Kaksonen
Messages: 27 Registered: October 1999
|
Junior Member |
|
|
Sorry to bother you again...
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?
--
Regards,
Karri Kaksonen
|
|
|
Re: Does the hide-keyword work? [message #17625 is a reply to message #17534] |
Sun, 31 October 1999 00:00  |
Karri Kaksonen
Messages: 27 Registered: October 1999
|
Junior Member |
|
|
mumble.. mumble...
sorry. I was a bad student at Davids course.
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
Now "hide" works just as I thought it would.
Thank you for your trouble,
--
Karri
Mark Hadfield wrote:
>> o->setproperty, hide=1
>>
>> makes the object invisible :)
>>
>> o->setproperty, hide=0
>>
>> does not bring it back :(
> Setting HIDE to zero should have made your object visible again. But the
> window will need to be redrawn before you can see the change.
>
> ---
> Mark Hadfield
|
|
|
Re: Does the hide-keyword work? [message #17627 is a reply to message #17534] |
Sun, 31 October 1999 00:00  |
Mark Hadfield
Messages: 783 Registered: May 1995
|
Senior Member |
|
|
Karri Kaksonen <karri.kaksonen@picker.fi> wrote in message
news:381ABD4D.AD240E63@picker.fi...
> Sorry to bother you again...
>
> 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?
Setting HIDE to zero should have made your object visible again. But the
window will need to be redrawn before you can see the change.
---
Mark Hadfield
m.hadfield@niwa.cri.nz http://katipo.niwa.cri.nz/~hadfield/
National Institute for Water and Atmospheric Research
PO Box 14-901, Wellington, New Zealand
|
|
|