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

Close button for tabs

<< < (6/8) > >>

Funto:
Mandrav, I never said I didn't like the possibility to put a close button, on the contrary I think it is necessary (or at least a "close" item in a popup menu when right clicking on the tab).
The problem is that it wastes space, so as says zieQ, the best solution would be to put this button at the right of the toolbar.

rickg22:
Which is the reason for me asking to use a derivative of wxNotebook (wx2.6 "universal" version)

OK this is what we'll do:

I'll put the button to the LEFT of the notebook (for now, until something better's done). Default option is _OFF_. I'll add a "did you know" hint to tell users about the feature.

_YOU_ will research on using the wxnotebook (2.6 univ) and do some tests.

mandrav:

--- Quote from: Funto on August 01, 2005, 07:51:04 pm ---Mandrav, I never said I didn't like the possibility to put a close button, on the contrary I think it is necessary (or at least a "close" item in a popup menu when right clicking on the tab).
The problem is that it wastes space, so as says zieQ, the best solution would be to put this button at the right of the toolbar.

--- End quote ---

Don't get me wrong. All I 'm saying is it is disabled by default because not all people like it. For those who do like it, it's simple as a click to enable it. That's all.


--- Quote from: rickg22 on August 01, 2005, 06:07:28 pm ---
--- Quote from: thomas on August 01, 2005, 05:56:06 pm ---Putting the close button in the tab row is a good idea, I think. Not only does it use space more efficiently, but it is also compatible with what the user would expect.
--- End quote ---

The problem is, we DON'T know how to do it :(

--- End quote ---

To add it in the tabs row is easy (I 've done it). The problem is that it interferes with the left-right spinbox that appears when not all tabs fit in the row...

Yiannis.

kagerato:

--- Quote from: mandrav ---To add it in the tabs row is easy (I 've done it). The problem is that it interferes with the left-right spinbox that appears when not all tabs fit in the row...
--- End quote ---

Personally, it seems to be more consistent and less complicated for tab bars to deal with an excess of open windows/documents by shrinking the size of each individual tab.  The expansion to multiple lines is inelegant IMO, and it's clear that the overlapping placement of the spinbox and the close button interfere with one another.

The optimal solution is, of course, to improve the original widget which the tab bar derives from so that it supports any combination setting of tabs, spin box, and close button.  One can wonder how much work that would take.

rickg22:
I posted a topic in "help wanted". We need to implement a wxNotebook-like class but with a closebutton :) For that we need to use the wxTabCtrl class. Those interested please reply in the other topic. Thanks.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version