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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: how to hide a tab... ? [message #79156] Tue, 07 February 2012 20:13
Russell[1] is currently offline  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 #79183 is a reply to message #79156] Mon, 06 February 2012 13:08 Go to previous message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
That's what I am doing right now but I would prefer to hide the TAB
completely.
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.
  Switch to threaded view of this topic Create a new topic Submit Reply
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 15:36:32 PDT 2025

Total time taken to generate the page: 0.00420 seconds