News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Closing files

Started by David Perfors, July 14, 2005, 07:04:54 PM

Previous topic - Next topic

David Perfors

I am working with the latest cvs version now and I like it very much. tabbed windows are very nice to have, but I am missing the close button. I know I could use 'ctrl+w' and the menu, but isn't it much easier to have a little 'cross' somewhere (in the Tab or at the side (like firefox))?
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring

Ceniza

I've noticed that and I agree it would be nice to have that little button there, or at least have it like SciTe (in the toolbar). Dunno how easy it would be to put it in the tabs though.

rickg22

Maybe with a panel ABOVE the file, but that'd cut us one line. Yiannis, maybe with the wxdockit, there could be a way to split the toolbar in 2, with the rightmost having an "X"?

mandrav

To put a button on the notebook is easy. I 've just done it to test it and it's ok.
The problem is when many files are open, a spin control appears at the right of the tabs. Exactly where my close button was.
And I can't do anthing about it, it seems...

The only other option is to add a "Close file" button on the main toolbar.

Yiannis.
Be patient!
This bug will be fixed soon...

tiwag

why not a popup-menu for the tabs ?

rickg22

Hey - remember that you can make the notebook have multiline tabs, right? :) (Actually I think that'd be much cooler)

But yeah, in the meantime we could put a close button next to the "save" one.

mandrav

Quote from: rickg22Hey - remember that you can make the notebook have multiline tabs, right? :) (Actually I think that'd be much cooler)
Have you seen multiline tabs when opening *many* files? It's not pretty I tell you...

Besides, multi-line tabs are only supported under windows, so...

Yiannis.
Be patient!
This bug will be fixed soon...

Anonymous

IMHO the close button must be implemented at notebook wxWidgets level, adding the close button. (because very few wouldn't need that close button)
It can be discussed at the wxWidgets forum also.

Ceniza

Yep, it would help if wxWidgets had something for it and multiplatform. The spin control won't allow a Firefox-like implementation so, ATM, I'd say the close button in the toolbar is the way to go.

Another way would be to add an icon to each tab, the icon being the close button, but... wxWidgets wouldn't help there neither: well, you can add it and then?