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

Home » Public Forums » archive » Re: visibility for a simple widget
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: visibility for a simple widget [message #69049] Tue, 15 December 2009 14:33
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
Using XOFFSET and YOFFSET works well... Thanks !
nata
Re: visibility for a simple widget [message #69050 is a reply to message #69049] Tue, 15 December 2009 14:08 Go to previous message
David Fanning is currently offline  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 #69051 is a reply to message #69050] Tue, 15 December 2009 13:51 Go to previous message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
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 !

nata
Re: visibility for a simple widget [message #69052 is a reply to message #69051] Tue, 15 December 2009 13:35 Go to previous message
David Fanning is currently offline  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 #69053 is a reply to message #69052] Tue, 15 December 2009 13:30 Go to previous message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
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.
Thanks,
nata
Re: visibility for a simple widget [message #69054 is a reply to message #69053] Tue, 15 December 2009 13:24 Go to previous message
David Fanning is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Problem in IDL-Java Bridge
Next Topic: segfaults on ubuntu 9.04

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

Current Time: Sat Oct 11 08:54:35 PDT 2025

Total time taken to generate the page: 1.36174 seconds