Re: how to hide a tab... ? [message #79156] |
Tue, 07 February 2012 20:13 |
Russell[1]
Messages: 101 Registered: August 2011
|
Senior Member |
|
|
On Feb 6, 4:08 pm, nata <bernat.puigdomen...@gmail.com> wrote:
> That's what I am doing right now but I would prefer to hide the TAB
> completely.
I'm not sure if this will work, and it's probably a bit clunky even if
it does.... Can you not redraw the widget_tab and add (or don't add)
the relevant tab at each draw step?
Like I said, it ain't pretty, but it just might work.
russell
|
|
|
|
Re: how to hide a tab... ? [message #79184 is a reply to message #79183] |
Mon, 06 February 2012 12:53  |
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.
|
|
|