Allow better control over splitter position on resize
Add an event which can be handled by the application to determine the splitter position when the splitter window itself is resized. This can be used to e.g. preserve the splitter at the given proportion of the window (and not just in the middle, as it would be already possible by using gravity 0.5). Closes #22035.
This commit is contained in:
committed by
Vadim Zeitlin
parent
8f58562fea
commit
1533026945
@@ -32,6 +32,7 @@ class WXDLLIMPEXP_FWD_CORE wxSplitterEvent;
|
||||
|
||||
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_CORE, wxEVT_SPLITTER_SASH_POS_CHANGED, wxSplitterEvent );
|
||||
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_CORE, wxEVT_SPLITTER_SASH_POS_CHANGING, wxSplitterEvent );
|
||||
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_CORE, wxEVT_SPLITTER_SASH_POS_RESIZE, wxSplitterEvent );
|
||||
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_CORE, wxEVT_SPLITTER_DOUBLECLICKED, wxSplitterEvent );
|
||||
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_CORE, wxEVT_SPLITTER_UNSPLIT, wxSplitterEvent );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user