Author Topic: wxFlatNotebook 2.2  (Read 17791 times)

Offline eranif

  • Regular
  • ***
  • Posts: 254
Re: wxFlatNotebook 2.2
« Reply #15 on: July 24, 2007, 05:44:13 pm »
Killerbot,

Are you using the official 2.2 or the svn trunk?

By using the SVN trunk, you will get the following:
- Unlimited stack of recently visited tabs
- When closing a tab, the selected tab is the previously selected one

Eran

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5258
Re: wxFlatNotebook 2.2
« Reply #16 on: July 24, 2007, 11:34:36 pm »
currently I am using official 2.2 + the fix you mentioned above, after that one I will upgrade to your latest svn.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5258
Re: wxFlatNotebook 2.2
« Reply #17 on: July 25, 2007, 02:42:19 pm »
I have upgraded our sources to your latest svn, with a few differences :

1) renderer.cpp
   - removed the unused wxPoint regPts[9]; in DrawButton

2) wxFlatNotebook.cpp
  - added on your suggestion at the end of 'OnNavigationKey' : event.Skip();
  - extra cast to avoid warning in DoDeletePage :    if (m_iActivePage > (int)page || (int)page >= (int)(m_pagesInfoVec.Count())){


Maybe you can apply them in your source tree also. Thanks Eran for the help and the code ;-)

Offline eranif

  • Regular
  • ***
  • Posts: 254
Re: wxFlatNotebook 2.2
« Reply #18 on: July 25, 2007, 03:04:15 pm »
changes are now in SVN trunk of wxFlatNotebook

Eran

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9606
Re: wxFlatNotebook 2.2
« Reply #19 on: July 26, 2007, 09:17:17 am »
changes are now in SVN trunk of wxFlatNotebook
Eran, I have attached a ZIP file containning 2 C::B project files -> one for the lib and one for the sample with a default/debug target. They follow "our" C::B guidelines for a project setup and should thus allow anyone able to compile C::B also to be able to compile wxFlatNotebook (demo). This is for your reference and a request from a board member.
With regards, Morten.
Ps.: BTW: I believe you can savely remove the *.layout file in the "build" folder in SVN. In addition the DevCpp project files most likely won't work.

[attachment deleted by admin]
« Last Edit: July 26, 2007, 09:20:40 am by MortenMacFly »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: wxFlatNotebook 2.2
« Reply #20 on: July 26, 2007, 07:08:39 pm »
I have verified that the event.Skip() at the end of OnNavigationKey causes a tab to be inserted in the previously current editor whenever the editors are switched with Ctrl+Tab.
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Offline eranif

  • Regular
  • ***
  • Posts: 254
Re: wxFlatNotebook 2.2
« Reply #21 on: July 26, 2007, 07:49:24 pm »
mm, it make sense, since the editor will also process it and will process it as regular char
So I guess it should be removed from then
Eran

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: wxFlatNotebook 2.2
« Reply #22 on: July 26, 2007, 08:00:19 pm »
mm, it make sense, since the editor will also process it and will process it as regular char
So I guess it should be removed from then

Removed. :)
Be a part of the solution, not a part of the problem.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5258
Re: wxFlatNotebook 2.2
« Reply #23 on: July 26, 2007, 08:16:33 pm »
does anyone remember why we put it there, I think it was to fix something else. So we should reinvestigate for that other problem, bu I can't recall from the top of my head.

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: wxFlatNotebook 2.2
« Reply #24 on: July 26, 2007, 08:38:33 pm »
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9606
Re: wxFlatNotebook 2.2
« Reply #25 on: July 26, 2007, 09:21:13 pm »
does anyone remember why we put it there,

Please also notice this:
http://forums.codeblocks.org/index.php/topic,6093.msg50047.html#msg50047

So you can safely remove it - it doesn't make sense at all.

With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7017
    • My Best Post
Re: wxFlatNotebook 2.2
« Reply #26 on: July 30, 2007, 03:18:10 am »
Since wxFlatNotebook 2.2 requires wxWidgets 2.8, have we dropped support for using 2.6 to build C::B?
I wish to verify before updating some patches.

Thanks

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: wxFlatNotebook 2.2
« Reply #27 on: July 31, 2007, 07:34:03 pm »
I think dropping support for wxWidgets 2.6 isn't a good idea yet. At least on gentoo (and probably on other Linux distributions) wxGTK 2.6.3.3 still is the only available version (for stable systems).
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5258
Re: wxFlatNotebook 2.2
« Reply #28 on: July 31, 2007, 08:06:35 pm »
is it for sure that with wxFNB 2.2 it no longer builds/works with wx26x ??
It initially thaught so, but it could well be it works with wx26x

if not : then yes : bye bye wx 26x.


Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: wxFlatNotebook 2.2
« Reply #29 on: July 31, 2007, 08:26:08 pm »
In wxWidgets 2.8 the wxRect class got an additional member-function: wxRect::Contains. wxFNB 2.2 uses this function and therefore does not build with wxWidgets 2.6 anymore.

Anyway, I don't know whether this function is the only item that is special to wxWidgets 2.8 and used by wxFNB 2.2. If it is the only one, that it *should* be easy to fix as this function could probably replaced by a few lines of code or a simple self-made function.
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.