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

Home » Public Forums » archive » Re: how to hide a tab... ?
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: how to hide a tab... ? [message #79184 is a reply to message #79183] Mon, 06 February 2012 12:53 Go to previous message
Brian Daniel is currently offline  Brian Daniel
Messages: 80
Registered: July 2009
Member
On Feb 6, 3:31 pm, nata <bernat.puigdomen...@gmail.com> wrote:
> Hello gurus,
>
> Do you know if there is a way to hide a TAB in IDL? And by a TAB I
> mean a WIDGET_BASE who its parent it's a WIDGET_TAB.
> Let's give an example to explain this :
>
>   base=WIDGET_BASE(/COLUMN,XSIZE=200, YSIZE=50)
>   tabs=WIDGET_TAB(base)
>
>   tab1=WIDGET_BASE(tabs,TITLE='tab 1')
>   tab2=WIDGET_BASE(tabs,TITLE='tab 2')
>   tab3=WIDGET_BASE(tabs,TITLE='tab 3')
>
>   WIDGET_CONTROL, base, /REALIZE
>
> What I would like to do is hide / unhide 'tab 2'.. I tried the
> following things:
>
> WIDGET_CONTROL, tab2, .MAP=0
> WIDGET_CONTROL, tab2, REALIZE=0
>
> Any other ideas ? Thank you,
> nata

Try the SENSITIVE {0/1} keyword if you'd like to just gray it out.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Coyote Graphics Pixmap is Available
Next Topic: Wanted Professionals

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

Current Time: Wed Oct 08 19:36:28 PDT 2025

Total time taken to generate the page: 0.00455 seconds