|
Re: visibility for a simple widget [message #69050 is a reply to message #69049] |
Tue, 15 December 2009 14:08  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
nata writes:
> OK, doesn't work in Windows !
> Maybe I can always create the slider and then just change the XOFFSET,
> YOFFSET. Is it possible to set XOFFSET=-1 ?
> I'll try !
Humm. I think that should work. Try setting SCR_XSIZE
and SCR_YSIZE to a single pixel. Maybe no one will
notice it. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
|
Re: visibility for a simple widget [message #69052 is a reply to message #69051] |
Tue, 15 December 2009 13:35  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
nata writes:
> In this case I want to HIDE the widget completely so I don't want to
> use the SENSITIVE keyword.
> I'll destroy and I'll create each time I'll need it
Just be sure you run this program on Windows. Otherwise,
all hell breaks loose. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
|
Re: visibility for a simple widget [message #69054 is a reply to message #69053] |
Tue, 15 December 2009 13:24  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
nata writes:
> I have a simple question related to widgets. I've a slider and I want
> to show just in some cases. I want to hide the slider and I don't know
> how to do that...
> I tried MAP, REALIZE and SHOW keywords but it seems that visibility
> control is defined by the top hierarchy widget, the top base....
>
> There is a way to HIDE/UNHIDE my slider without destroying it ?
No, probably not in the way you are thinking about it.
Why don't you just disable it if you don't want the user
to use it:
Widget_Control, slider, SENSTIVE=0
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|