Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Close button for tabs

<< < (8/8)

AkiraDev:
Personally, I would like to have an option of having the tabs in either FF-style or VS.NET-style.

rickg22:

--- Quote from: kimastergeorge on August 28, 2005, 10:14:56 pm ---No, all you really need is their version. It doesn't have any sort of customizable button, but it works the same as mine, and seems to be much prettier (and cleaner).

--- End quote ---

Um...

"The only significant difference between this class and wxNotebook is that if you are adding new page you don't need any wxWindow instance for the page itself. It's because wxTabbedCtrl doesn't have any pages, only tabs."

This is what worries me. It's not a notebook, it's a tab control. I'm afraid it can't be just interchanged with our notebook...

AkiraDev:
Taking a look to the source, one can adapt wxTabbedCtrl so that it will also own a std::vector of pointers to wxWindow. Then, the selection events are handled by using calls to wxWindow::Show(). I don't see such a big problem with the "absence" of wxWindows.

The only problem I could actually see was that there is no wxScrollBar showing up on the right side when the bar is overflown by tabs. Nasty. But, then again, this can also be worked around.

takeshimiya:
Note that Firefox doesn't show a ScrollBar when the bar is overflown by tabs.
The best I think is:

[SOMETAB] [SOMETAB] [SOMETAB] [<] [>] [CLOSE]

And would be better if the ScrollBar scrolls "pages of tabs" instead of "1 tab" each time you clic on a Prev/Next of the ScrollBar.

kimastergeorge:

--- Quote from: takeshimiya on August 29, 2005, 10:15:26 pm ---Note that Firefox doesn't show a ScrollBar when the bar is overflown by tabs.
The best I think is:

[SOMETAB] [SOMETAB] [SOMETAB] [<] [>] [x]

And would be better if the ScrollBar scrolls "pages of tabs" instead of "1 tab" each time you clic on a Prev/Next of the ScrollBar.

--- End quote ---

You're gonna have to take that up with the dudes at GTK+ and the Windows GUI designers.

Honestly, though, I have no idea how Firefox does what it does! It almost shouldn't happen! Nowhere in the GTK+ or Windows API (not to mention wxWidgets) is there a method for doing that.

Navigation

[0] Message Index

[*] Previous page

Go to full version