News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

BOUNTY: Notebook class with "close" button at the right

Started by rickg22, August 02, 2005, 04:09:03 AM

Previous topic - Next topic

Michael

[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

sethjackson

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

eranif

QuoteMaybe this will fix our drop target problems.

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

Eran


eranif

Did you try to disable the drag'n'drop of the wxFlatNotebook using the style: wxFNB_NODRAG style?

Eran

sethjackson

Quote from: eranif 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


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

Pecan

Quote from: eranif 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?

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

eranif

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



squizzz

@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