Is it possible to make wxAuiNotebook not draw XOR line but resize the child windows immediately? Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
czczzzz
Earned a small fee
Earned a small fee
Posts: 20
Joined: Thu May 13, 2021 10:34 am

Is it possible to make wxAuiNotebook not draw XOR line but resize the child windows immediately?

Post by czczzzz »

wxSplitterWindow can be set to "wxSP_LIVE_UPDATE".when I am dragging the sash,it will resize windows immediately.

Could it be possible that wxAuiNotebook or wxNotebook do the same thing?











sorry for my english
User avatar
doublemax
Moderator
Moderator
Posts: 19115
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Is it possible to make wxAuiNotebook not draw XOR line but resize the child windows immediately?

Post by doublemax »

This is not something that wxAuiNotebook or wxNotebook is responsible for.
Are you using wxAUI? Then you're probably looking for wxAUI_MGR_LIVE_RESIZE.
Use the source, Luke!
czczzzz
Earned a small fee
Earned a small fee
Posts: 20
Joined: Thu May 13, 2021 10:34 am

Re: Is it possible to make wxAuiNotebook not draw XOR line but resize the child windows immediately?

Post by czczzzz »

You are a lifesaver!!!!!!!!!!!!!!!!!!!

GodLike hero!!!!!!!!!!!!


yes, wxAUI_MGR_LIVE_RESIZE works like a magic!!!!!! [-o< [-o< [-o< [-o<


If someone is interested in "live resize" of wxAuiNote book,I post my code below:

Code: Select all

wxAuiNotebook* auiNotebook = new wxAuiNotebook(this, wxID_ANY, {}, {}, wxAUI_NB_DEFAULT_STYLE ^ wxAUI_NB_CLOSE_ON_ACTIVE_TAB | wxAUI_BUTTON_DOWN);

wxAuiManager* auiManager = wxAuiManager::GetManager(auiNotebook);
auiManager->SetFlags(wxAUI_MGR_LIVE_RESIZE);

Post Reply