Author Topic: Closing files  (Read 8046 times)

Offline David Perfors

  • Developer
  • Lives here!
  • *****
  • Posts: 560
Closing files
« 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))?
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Closing files
« Reply #1 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.

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Closing files
« Reply #2 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"?

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Closing files
« Reply #3 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.
Be patient!
This bug will be fixed soon...

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Closing files
« Reply #4 on: July 14, 2005, 10:50:19 pm »
why not a popup-menu for the tabs ?

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Closing files
« Reply #5 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.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Closing files
« Reply #6 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.
Be patient!
This bug will be fixed soon...

Anonymous

  • Guest
Closing files
« Reply #7 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.

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Closing files
« Reply #8 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?