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
Is it possible to make wxAuiNotebook not draw XOR line but resize the child windows immediately? Topic is solved
-
- Earned a small fee
- Posts: 20
- Joined: Thu May 13, 2021 10:34 am
-
- Moderator
- Posts: 19164
- 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?
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.
Are you using wxAUI? Then you're probably looking for wxAUI_MGR_LIVE_RESIZE.
Use the source, Luke!
-
- 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?
You are a lifesaver!!!!!!!!!!!!!!!!!!!
GodLike hero!!!!!!!!!!!!
yes, wxAUI_MGR_LIVE_RESIZE works like a magic!!!!!!
If someone is interested in "live resize" of wxAuiNote book,I post my code below:
GodLike hero!!!!!!!!!!!!
yes, wxAUI_MGR_LIVE_RESIZE works like a magic!!!!!!
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);