//----------------------------------------------------------------------------- public bool LayoutMDIFrame(MDIParentFrame frame) { // FIXME Rectangle dummy = new Rectangle(0, 0, 0, 0); return(LayoutMDIFrame(frame, dummy)); }
public MDIClientWindow(MDIParentFrame parent, long style) : base(wxMDIClientWindow_ctor()) { if (!CreateClient(parent, style)) { throw new InvalidOperationException("Could not create MDIClientWindow"); } }
public MDIChildFrame(MDIParentFrame parent, int id, string title, Point pos, Size size, long style, string name) : base(wxMDIChildFrame_ctor()) { if (!Create(parent, id, title, pos, size, style, name)) { throw new InvalidOperationException("Could not create MDIChildFrame"); } EVT_ACTIVATE(new EventListener(OnActivate)); }
//----------------------------------------------------------------------------- public bool Create(MDIParentFrame parent, int id, string title, Point pos, Size size, long style, string name) { bool ret = wxMDIChildFrame_Create(wxObject, Object.SafePtr(parent), id, title, ref pos, ref size, (uint)style, name); #if __WXMAC__ // Bug in wxMac 2.5.2; it always returns FALSE return(true); #else return(ret); #endif }
//----------------------------------------------------------------------------- public bool CreateClient(MDIParentFrame parent, long style) { return(wxMDIClientWindow_CreateClient(wxObject, Object.SafePtr(parent), (uint)style)); }
public MDIClientWindow(MDIParentFrame parent) : this(parent, 0) { }
public MDIChildFrame(MDIParentFrame parent, string title, Point pos, Size size, long style, string name) : this(parent, Window.UniqueID, title, pos, size, style, name) { }
public MDIChildFrame(MDIParentFrame parent, string title, Point pos, Size size) : this(parent, Window.UniqueID, title, pos, size, wxDEFAULT_FRAME_STYLE, "mdiChildFrame") { }
//--------------------------------------------------------------------- // ctors with self created id public MDIChildFrame(MDIParentFrame parent, string title) : this(parent, Window.UniqueID, title, wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE, "mdiChildFrame") { }
public MDIChildFrame(MDIParentFrame parent, int id, string title, Point pos, Size size, long style) : this(parent, id, title, pos, size, style, "mdiChildFrame") { }
public MDIChildFrame(MDIParentFrame parent, int id, string title, Point pos) : this(parent, id, title, pos, wxDefaultSize, wxDEFAULT_FRAME_STYLE, "mdiChildFrame") { }
public bool LayoutMDIFrame(MDIParentFrame frame, Rectangle rect) { return(wxLayoutAlgorithm_LayoutMDIFrame(wxObject, Object.SafePtr(frame), ref rect)); }