A class which encapsulates an MFC CSplitterWnd
. Derived from a PyCWnd object.
-
Returns the PyCWnd object associated with a splitter window pane.
-
Creates a view in a splitter window
-
Creates a static splitter window.
-
Sets a new minimum height and ideal height for a column
-
Sets a new minimum height and ideal height for a row.
-
Gets the child window ID for the specified child.
-
PyCSplitterWnd.CreateStatic
CreateStatic(parent, rows, cols, style, id) Creates a static splitter window.
-
parent : PyCFrameWnd or PyCSplitter
The parent window.
-
rows : int
The number of rows in the splitter.
-
cols : int
The number of columns in the splitter.
-
style=WS_CHILD | WS_VISIBLE : int
Specifies the window style
-
id=AFX_IDW_PANE_FIRST : int
The child window ID of the window. The ID can be AFX_IDW_PANE_FIRST unless the splitter window is nested inside another splitter window.
A static splitter window is a splitter where the number of panes are
fixed at window creation time. Currently this is the only splitter window
supported by win32ui.
- CSplitterWnd::CreateStatic
PyCSplitterWnd.CreateView
CreateView(view, row, col, width, height) Creates a view in a splitter window
-
view : PyCView
The view to place in the splitter pane.
-
row : int
The row in the splitter to place the view.
-
col : int
The column in the splitter to place the view.
-
width, height : (int, int)
The initial size of the new view.
- CSplitterWnd::CreateView
exception set.
PyCSplitterWnd.DoKeyboardSplit
int = DoKeyboardSplit()
PyCSplitterWnd.GetPane
PyCWnd = GetPane(row, col
) Returns the PyCView associated with the specified pane.
-
row : int
The row in the splitter.
-
col : int
The column in the splitter.
Theoretically the return value can be a PyCWnd object, but currently it
will always be a PyCView or derived object.
PyCSplitterWnd.IdFromRowCol
IdFromRowCol(row, col) Gets the child window ID for the specified child.
-
row : int
The row in the splitter.
-
col : int
The col in the splitter
PyCSplitterWnd.SetColumnInfo
SetColumnInfo(column, ideal, min) Sets a new minimum height and ideal height for a column
-
column : int
The column in the splitter.
-
ideal : int
Specifies an ideal height for the splitter window column in pixels.
-
min : int
Specifies a minimum height for the splitter window column in pixels.
PyCSplitterWnd.SetRowInfo
SetRowInfo(row, ideal, min) Sets a new minimum height and ideal height for a row.
-
row : int
The row in the splitter.
-
ideal : int
Specifies an ideal height for the splitter window row in pixels.
-
min : int
Specifies a minimum height for the splitter window row in pixels.