Developer forums (C::B DEVELOPMENT STRICTLY!) > Contributions to C::B
BOUNTY: Notebook class with "close" button at the right
kimastergeorge:
The wxMessageBoxes were for debugging, and I forgot to take them out.
Yes, HitTest() is available. I didn't know it was available for platforms besides Windows, but apparently it is, so I'll rewrite the code to use that.
I've marked the originally GPL code (roughly) in the code, and removed the wxMessageBoxes.
I'll contact the aMule people and ask them if I could use this code under the wxWidget license.
EDIT: Changed the new version of changenb.cpp to have both HitTest for new versions of wxWidgets and no HitTest for old versions.
[attachment deleted by admin]
rickg22:
Em are you sure it's a good idea to use hittest? I remember the hittest to be requested only recently in the wxwidgets project.
kimastergeorge:
I think it's alright. I keep the old version in there, for wxWidgets 2.5.1 and earlier. If the precompile logic I use doesn't satisfy you, you can always remove the HitTest() code and just use the other one.
takeshimiya:
Hi!
Maybe wyoEditor can help regarding this.
He already haves a patch for wx:
[ 748469 ] wxNotebook::HitTest for wxMSW and wxUniv
Right clicking on a notebook tab brings up a context menu when this patch is
applied, otherwise nothing happens. If this patch is applied to make it
usable the define NOTEBOOK_HITTEST in setup.h has to be set to 1 (Only usable
on wxMSW and wxUniv).
Another patch, but little off-topic:
[ 865500 ] wxNotebook: No correct current page after DeletePage
On wxGTK after deleting a page which is before the current page always the
wrong current page is returned (only wxGTK)
Maybe the patches got included in the wx2.6 version, dunno.
See wyoEditor at http://wyoguide.sourceforge.net/
tuft:
wxNotebook uses wxTabView to render tabs, what about using that instead of whole wxNotebook?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version