Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » TabCtrl » TabBar min tab count  () 1 Vote
TabBar min tab count [message #37227] Fri, 07 September 2012 10:37 Go to next message
koldo is currently offline  koldo
Messages: 3354
Registered: August 2008
Senior Veteran
Hello all

Now TabBar has a protected variable mintabcount that is set to 1 and cannot be changed.

This way if you open some tabs it is not possible to remove them all as Close() checks mintabcount and CloseAll() is protected too.

It would be great to have a void SetMinTabCount(int) function to modify this.


Best regards
Iñaki
Re: TabBar min tab count [message #37707 is a reply to message #37227] Sun, 04 November 2012 18:29 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3354
Registered: August 2008
Senior Veteran
Hello all

Any opinion about this?


Best regards
Iñaki
Re: TabBar min tab count [message #37709 is a reply to message #37707] Sun, 04 November 2012 19:25 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi Koldo,

I'd vote to implement your proposition. I really like apps that can close all the opened documents without closing the app itself. Example of this could be geany. It is sometimes very useful to close everything and then open different files e.g. when moving from one project to another. I would also like to do that in TheIDE and other programs. IMHO it makes sense, especially if the old behavior can be left as default and only overridden when needed.

Best regards,
Honza
Re: TabBar min tab count [message #37719 is a reply to message #37709] Mon, 05 November 2012 18:17 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 680
Registered: November 2008
Location: France
Contributor
Hi Koldo and Honza,

I also agree that there is no valid reason to keep from closing the last tab.
TabCtrl allows to close all tabs and works fine
Re: TabBar min tab count [message #37976 is a reply to message #37719] Mon, 26 November 2012 14:04 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
I have started adding MinTabCount method, then noticed it is already there, most likely since the beginning (?!)

Mirek
Re: TabBar min tab count [message #37980 is a reply to message #37976] Mon, 26 November 2012 21:47 Go to previous message
koldo is currently offline  koldo
Messages: 3354
Registered: August 2008
Senior Veteran
Hello Mirek

You are right. I do not know how I did not realized a couple of months ago. Sorry for the misunderstanding.


Best regards
Iñaki
Previous Topic: Tabctrl and RightDown.
Next Topic: Scaling TabCtrl images
Goto Forum:
  


Current Time: Thu Mar 28 09:21:02 CET 2024

Total time taken to generate the page: 0.01178 seconds