Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: David Perfors on July 14, 2005, 07:04:54 pm

Title: Closing files
Post by: David Perfors on July 14, 2005, 07:04:54 pm
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))?
Title: Closing files
Post by: Ceniza on July 14, 2005, 07:32:04 pm
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.
Title: Closing files
Post by: rickg22 on July 14, 2005, 09:05:56 pm
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"?
Title: Closing files
Post by: mandrav on July 14, 2005, 09:21:01 pm
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.
Title: Closing files
Post by: tiwag on July 14, 2005, 10:50:19 pm
why not a popup-menu for the tabs ?
Title: Closing files
Post by: rickg22 on July 14, 2005, 11:03:01 pm
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.
Title: Closing files
Post by: mandrav on July 14, 2005, 11:05:56 pm
Quote from: rickg22
Hey - 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.
Title: Closing files
Post by: Anonymous on July 14, 2005, 11:24:57 pm
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.
Title: Closing files
Post by: Ceniza on July 14, 2005, 11:47:28 pm
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?