The properties dialog is nice, but I can't let users in some cases to close tabs (so no x is shown) or to drag tabs to foreign notebooks, so I must disable changing those options.
Aslo there is a minor problem, since you changed the wxRect::Inside to wxRect::Contains, the notebook is no longer wx26_ compatible .
Under linux you can use the following lines in the makefile
WX_DOT_RELEASE=$(shell $(WX_CONFIG_PATH) --release)
WX_RELEASE := __WX_R$(subst .,_,$(WX_DOT_RELEASE))__
This will define __WX_R2_6__ in case of any wx26 release, __WX_R2_8__ in case of aany wx28 relase, etc.
So in the source code you can have:
Code: Select all
if(rect. #ifdef __WX_R2_6__ Inside #else Contains #endif (pt))
I attached the files I modified slightly to fit my needs (using parent fonts, flatmenu, etc) in case some1 is intrested (note: I ectracted the sources from a current project, so you might need to remove/modify some includes).