Author Topic: BOUNTY: Notebook class with "close" button at the right  (Read 136342 times)

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: BOUNTY: Notebook class with "close" button at the right
« Reply #165 on: January 26, 2006, 06:41:36 pm »
Guys eranif just updated wxFlatNotebook...... Just a heads up

http://wxforum.shadonet.com/viewtopic.php?t=5761&start=90

The changes look really interesting :D.

Michael

sethjackson

  • Guest
Re: BOUNTY: Notebook class with "close" button at the right
« Reply #166 on: March 02, 2006, 12:06:37 am »
Heh A new version of wxFNB is out. Here is a ripped copy of Eranif's post from here.

http://wxforum.shadonet.com/viewtopic.php?t=5761&postdays=0&postorder=asc&start=120

Need I ask that wxFNB could be updated if possible? Maybe this will fix our drop target problems. :P

Hi,
Since I got several requests from people, I created new version
with the following changes:

Features:
--------

+ Changed the buttons ( <>x buttons ) coloring to be more XP look
+ An option to remove the border around the tab area
+ Set/Get colors of the following:
- Active tab text
- Non-Active text
- Tab area colors
- Active tab color
+ New option introduced to add 'X' button on active tab
+ New event is now fired after page is being closed wxEVT_COMMAND_FLATNOTEBOOK_PAGE_CLOSED -
this allow the application to preform some cleanup after closure of page
+ An option to disable a tab - a tab can now be disabled, which means it will not receive any event, user can not select
it nor navigate to it (using Ctrl+Tab/Tab)


Bugs:
----
+ Fixed minor drawing issues
+ Fixed bug that when closing the a tab using the mouse middle button, the page was set to active and only then closed.
+ Fixed bug that the old selection value in the event when closing a page was incorrect

The files are zipped at sourceforge - enjoy
Eran

Offline eranif

  • Regular
  • ***
  • Posts: 256
Re: BOUNTY: Notebook class with "close" button at the right
« Reply #167 on: March 03, 2006, 08:42:20 pm »
Quote
Maybe this will fix our drop target problems.

Can you please describe the problem, since I wasnt aware of it

Eran

sethjackson

  • Guest

Offline eranif

  • Regular
  • ***
  • Posts: 256
Re: BOUNTY: Notebook class with "close" button at the right
« Reply #169 on: March 03, 2006, 09:05:08 pm »
Did you try to disable the drag'n'drop of the wxFlatNotebook using the style: wxFNB_NODRAG style?

Eran

sethjackson

  • Guest
Re: BOUNTY: Notebook class with "close" button at the right
« Reply #170 on: March 03, 2006, 09:08:47 pm »
Did you try to disable the drag'n'drop of the wxFlatNotebook using the style: wxFNB_NODRAG style?

Eran


No... I think we want to keep the drag and drop of wxFND......

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: BOUNTY: Notebook class with "close" button at the right
« Reply #171 on: March 03, 2006, 10:11:26 pm »
Did you try to disable the drag'n'drop of the wxFlatNotebook using the style: wxFNB_NODRAG style?

I was unaware of that flag. So I wrote a patch to simply set
wxFlatNotebook's drop target back to the original MainFrame
drop target. It works fine.

I wanted to keep the dragNdrop for the notebook tabs (page container),
but also keep the dragNdrop target for the project tree control. The patch
meets that objective. Especially since wxFNB is _not_ using it's wxFlatNotebook
drop target, only it's page container drop target.

Maybe Yiannis or Thomas will want to arbitrate this.

thanks
pecan
« Last Edit: March 03, 2006, 10:14:07 pm by Pecan »

Offline eranif

  • Regular
  • ***
  • Posts: 256
Re: BOUNTY: Notebook class with "close" button at the right
« Reply #172 on: August 21, 2006, 12:20:09 am »
Hi,

Sorry to wakeup a "dead" thread like this, but I have a question:

Would you be intersted in adding new 'look' to C::B?
Recently, I developed a whole set of controls for wxWidgets (which I wanted to sell, but eventually I decided to give it for free, including sources, to the community for free project such as C::B)

Here is a screenshots of the control wxStyledNotebook - derived from wxFlatNotebook - to replace it, just do find and replace for the type and you will get this look (In addition to the existing ones):

Of course that the colorful tabs can be removed  :D

If you are intresting in any other of my controls - here is a screenshot of bunch of them - all for free with source code


The terms for using them are very simple:
If you are developing a free project like C::B or any other - then it is for free, with source files
for any other purpose, contact me

Eran
AKA
eranif



Offline squizzz

  • Almost regular
  • **
  • Posts: 132
Re: BOUNTY: Notebook class with "close" button at the right
« Reply #173 on: August 21, 2006, 04:58:11 pm »
@eranif - these look really amazing... Just as amazing as the fact how much you share your (great) code with others!
I wish you earn a lot of  money selling them.

PS. Consider putting link to your website into your signature (or profile) - it takes a lot of time to find it.
Also, you may consider using PNG image format for all your screenshots here - only two of them are jpegs, but their lossy compression really spoils the look.

this space is for rent