Skip to content

Latest commit

 

History

History
194 lines (96 loc) · 3.91 KB

PyCSplitterWnd.md

File metadata and controls

194 lines (96 loc) · 3.91 KB

PyCSplitterWnd

PyCSplitterWnd Object

A class which encapsulates an MFC CSplitterWnd

. Derived from a PyCWnd object.

Methods

PyCSplitterWnd.CreateStatic

CreateStatic(parent, rows, cols, style, id) Creates a static splitter window.

Parameters

  • 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.

Comments

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.

MFC References

  • CSplitterWnd::CreateStatic

PyCSplitterWnd.CreateView

CreateView(view, row, col, width, height) Creates a view in a splitter window

Parameters

  • 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.

MFC References

  • CSplitterWnd::CreateView

exception set.

PyCSplitterWnd.DoKeyboardSplit

int = DoKeyboardSplit()

PyCWnd = GetPane(row, col

) Returns the PyCView associated with the specified pane.

Parameters

  • row : int

    The row in the splitter.

  • col : int

    The column in the splitter.

Comments

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.

Parameters

  • 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

Parameters

  • 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.

Parameters

  • 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.