Hello,
We are trying to use wxFlatNotebook in our app, but on Windows, we noticed the EVT_NOTEBOOK_PAGE_CHANGED/CHANGING events are not raised at page insertion, as the wxNotebook does.
We would like to be able to switch between wxFlatNotebook and wxNotebook with a single preprocessor definition, so we need both controls to have the same behaviour.
Is it possible to make wxFlatNotebook raise these events on Windows?
Another question:
How to set the background colours for pages? as it is not the same colour as the one used for the notebook itself (at least on Windows).
Regards,
B
wxFlatNotebook: EVT_NOTEBOOK_PAGE_CHANGED/CHANGING? Topic is solved
Hi,
(the wxFlatNotebook control, is basically two controls sitting on a sizer: The active page & the tab drawing area)
HTH
- Eran
I will look at it later tonight, and will probably will add it.benedicte wrote:We are trying to use wxFlatNotebook in our app, but on Windows, we noticed the EVT_NOTEBOOK_PAGE_CHANGED/CHANGING events are not raised at page insertion, as the wxNotebook does
When adding a page, simply set it background colour.benedicte wrote:How to set the background colours for pages? as it is not the same colour as the one used for the notebook itself (at least on Windows)
(the wxFlatNotebook control, is basically two controls sitting on a sizer: The active page & the tab drawing area)
Code: Select all
wxWindow *page = CreateDefaultPage();
page->SetBackgroundColour( wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));
- Eran
Thanks Eran,
We also noticed a problem when using wxFlatNotebook built as a DLL.
The renderer singleton is not released because the variable is not shared between the DLL and the app. (it is initialized in the DLL, and not released)
We are going to submit a patch on SF to make a function exported so that the singleton in the DLL can be "free"d with a call in the app.
Regards,
B
We also noticed a problem when using wxFlatNotebook built as a DLL.
The renderer singleton is not released because the variable is not shared between the DLL and the app. (it is initialized in the DLL, and not released)
We are going to submit a patch on SF to make a function exported so that the singleton in the DLL can be "free"d with a call in the app.
Regards,
B