Hide tab buttons

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

ricardo_arango
Just popping in
Just popping in
Posts: 6
Joined: Sun Jul 01, 2007 19:26

Hide tab buttons

Postby ricardo_arango » Thu Dec 11, 2008 01:44

Hi,

I am using tab buttons, but I want some of them to be hidden at times. I can hide them with no problem, but if I move the mouse over one of the tabs buttons displayed, all of them are immediately displayed. Even the ones that were hidden.

So is there a way to change the behavior of that mouse over event?

or as an alternative, I can enable/disable them. But how can I change the color of the text of the disabled tab buttons, so they actually look disabled. Because even thought it is defined different in the LookAndFeel file, it doesn't change.

Thanks.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Thu Dec 11, 2008 09:58

Hi,

If you're using TabButtons outside of the TabControl, can I ask what exactly you're trying to achieve and why you chose TabButton? I ask in order to fully understand the situation and so it will be easier to offer advice ;)

The TabButton is pretty much specifically designed to be used as part of the TabControl, so when using it outside of the TabControl you'll likely see some behaviours that do not make sense in 'normal' usage (this is likely one of them, though I did not look at the code).

CE.

Pompei2
Home away from home
Home away from home
Posts: 489
Joined: Tue May 23, 2006 16:31

Postby Pompei2 » Thu Dec 11, 2008 18:23

CrazyEddie wrote:Hi,

If you're using TabButtons outside of the TabControl, can I ask what exactly you're trying to achieve and why you chose TabButton? I ask in order to fully understand the situation and so it will be easier to offer advice ;)

The TabButton is pretty much specifically designed to be used as part of the TabControl, so when using it outside of the TabControl you'll likely see some behaviours that do not make sense in 'normal' usage (this is likely one of them, though I did not look at the code).

CE.

I think he actually uses a whole tab control thing, but just wants to hide some buttons at some times, so that the user can not open some tabs under some conditions.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Thu Dec 11, 2008 19:37

Pompei2 wrote:I think he actually uses a whole tab control thing, but just wants to hide some buttons at some times, so that the user can not open some tabs under some conditions.

Ah, right. I think the only way to do that is to completely remove the content pane that corresponds to the tab button you want to hide. You can't just hide those buttons because technically they're not your buttons to hide ;)

The other option is of course to write a new TabControl that allows you to manipulate the buttons.

CE.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 2 guests