Beispiel #1
0
        //-----------------------------------------------------------------------------

        public bool LayoutMDIFrame(MDIParentFrame frame)
        {
            // FIXME
            Rectangle dummy = new Rectangle(0, 0, 0, 0);

            return(LayoutMDIFrame(frame, dummy));
        }
Beispiel #2
0
 public MDIClientWindow(MDIParentFrame parent, long style)
     : base(wxMDIClientWindow_ctor())
 {
     if (!CreateClient(parent, style))
     {
         throw new InvalidOperationException("Could not create MDIClientWindow");
     }
 }
Beispiel #3
0
        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));
        }
Beispiel #4
0
        //-----------------------------------------------------------------------------

        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
        }
Beispiel #5
0
        //-----------------------------------------------------------------------------

        public bool CreateClient(MDIParentFrame parent, long style)
        {
            return(wxMDIClientWindow_CreateClient(wxObject, Object.SafePtr(parent), (uint)style));
        }
Beispiel #6
0
 public MDIClientWindow(MDIParentFrame parent)
     : this(parent, 0)
 {
 }
Beispiel #7
0
 public MDIChildFrame(MDIParentFrame parent, string title, Point pos, Size size, long style, string name)
     : this(parent, Window.UniqueID, title, pos, size, style, name)
 {
 }
Beispiel #8
0
 public MDIChildFrame(MDIParentFrame parent, string title, Point pos, Size size)
     : this(parent, Window.UniqueID, title, pos, size, wxDEFAULT_FRAME_STYLE, "mdiChildFrame")
 {
 }
Beispiel #9
0
        //---------------------------------------------------------------------
        // ctors with self created id

        public MDIChildFrame(MDIParentFrame parent, string title)
            : this(parent, Window.UniqueID, title, wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE, "mdiChildFrame")
        {
        }
Beispiel #10
0
 public MDIChildFrame(MDIParentFrame parent, int id, string title, Point pos, Size size, long style)
     : this(parent, id, title, pos, size, style, "mdiChildFrame")
 {
 }
Beispiel #11
0
 public MDIChildFrame(MDIParentFrame parent, int id, string title, Point pos)
     : this(parent, id, title, pos, wxDefaultSize, wxDEFAULT_FRAME_STYLE, "mdiChildFrame")
 {
 }
Beispiel #12
0
 public bool LayoutMDIFrame(MDIParentFrame frame, Rectangle rect)
 {
     return(wxLayoutAlgorithm_LayoutMDIFrame(wxObject, Object.SafePtr(frame), ref rect));
 }