1533026945
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.
42 lines
1.6 KiB
C++
42 lines
1.6 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: wx/splitter.h
|
|
// Purpose: Base header for wxSplitterWindow
|
|
// Author: Julian Smart
|
|
// Modified by:
|
|
// Created:
|
|
// Copyright: (c) Julian Smart
|
|
// Licence: wxWindows Licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef _WX_SPLITTER_H_BASE_
|
|
#define _WX_SPLITTER_H_BASE_
|
|
|
|
#include "wx/event.h"
|
|
|
|
// ----------------------------------------------------------------------------
|
|
// wxSplitterWindow flags
|
|
// ----------------------------------------------------------------------------
|
|
|
|
#define wxSP_NOBORDER 0x0000
|
|
#define wxSP_THIN_SASH 0x0000 // NB: the default is 3D sash
|
|
#define wxSP_NOSASH 0x0010
|
|
#define wxSP_PERMIT_UNSPLIT 0x0040
|
|
#define wxSP_LIVE_UPDATE 0x0080
|
|
#define wxSP_3DSASH 0x0100
|
|
#define wxSP_3DBORDER 0x0200
|
|
#define wxSP_NO_XP_THEME 0x0400
|
|
#define wxSP_BORDER wxSP_3DBORDER
|
|
#define wxSP_3D (wxSP_3DBORDER | wxSP_3DSASH)
|
|
|
|
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 );
|
|
|
|
#include "wx/generic/splitter.h"
|
|
|
|
#endif // _WX_SPLITTER_H_BASE_
|