Kirix Support Forums

Usage with wxNotebook based forms

Please post all general questions, comments, bug reports, and any other wxAUI feedback here.

Usage with wxNotebook based forms

Postby lollisoft on Tue Feb 14, 2006 6:54 am

Hi,

I have tried wxAUI in my application that uses sizers for the notebook
to fit my forms into the main frame.

There is a 'ugly' repainting problem (wxMac). If I resize the window, it gets darker and darker. This also happens when a button is pressed.

Are there any hints when using wxNotebooks with sizerbased layouts ?

My frame constructors are proper initializing the manager.

Here you will find a screenshot:
http://lothar.dnsalias.net/wordpress/?page_id=14

Here is the code that adds the notebook to the manager:

if (frame->isPanelUsage()) {
if (!notebook) {
notebook = new wxNotebook(frame, -1);
sizerMain = new wxBoxSizer(wxVERTICAL);

frame->SetAutoLayout(TRUE);
notebook->SetAutoLayout(TRUE);

sizerMain->Add(notebook, 1, wxEXPAND | wxALL, 0);

frame->SetSizer(sizerMain);

frame->getAUIManager().AddPane(notebook, wxCENTER, wxT("Workplace"));

frame->getAUIManager().Update();
}
}

Thanks, Lothar
lollisoft
 

Return to wxAUI Questions, Thoughts & Feedback