Re: wxNotebook Tab Hiding

720 views
Skip to first unread message

Edgardo Rossetto

unread,
Oct 7, 2004, 9:59:22 PM10/7/04
to wx-u...@lists.wxwidgets.org
Jon Trauntvein wrote:

>"Eduardo B. Fonseca" <e...@aedsol.com> writes:
>
>
>
>>Hi everyone,
>>
>> Is there any way to hide the tabs on wxNotebook? My application,
>>sometimes, only has one tab available for the user and I would like to
>>hide it when this happens, and show them again when two or more are
>>available.
>>
>>
>There are two methods provided for removing pages from the notebook. One
>method, DeletePage(), will remove the page from the notebook and destroy the
>window. The other method, RemovePage(), will simply remove the page from the
>notebook but leave the window intact (but hidden). In order to restore it, you
>would simply add the removed page back into the notebook. The one downside to
>this approach is that the tab itself will disappear. If what you are after is
>being able to disable the tabs and show them as such, I have no idea.
>
>
>Regards,
>
>Jon Trauntvein
>
Perhaps after removing the page, you could change the window's parent
(to the notebook's parent) and show it again.

Eduardo B. Fonseca

unread,
Oct 7, 2004, 4:20:04 PM10/7/04
to wx-u...@lists.wxwidgets.org
Hi everyone,

Is there any way to hide the tabs on wxNotebook? My application,
sometimes, only has one tab available for the user and I would like to
hide it when this happens, and show them again when two or more are
available.

Thanks!

--
Eduardo B. Fonseca
Account Manager
e...@aedsol.com

Jon Trauntvein

unread,
Oct 7, 2004, 11:55:33 PM10/7/04
to wx-u...@lists.wxwindows.org
"Eduardo B. Fonseca" <e...@aedsol.com> writes:

> Hi everyone,
>
> Is there any way to hide the tabs on wxNotebook? My application,
> sometimes, only has one tab available for the user and I would like to
> hide it when this happens, and show them again when two or more are
> available.

Reply all
Reply to author
Forward
0 new messages