Ejemplo n.º 1
0
        //-----------------------------------------------------------------------------

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

            return(LayoutMDIFrame(frame, dummy));
        }
Ejemplo n.º 2
0
Archivo: MDI.cs Proyecto: wshcdr/wxnet
 public MDIClientWindow(MDIParentFrame parent, long style)
     : base(wxMDIClientWindow_ctor())
 {
     if (!CreateClient(parent, style))
     {
         throw new InvalidOperationException("Could not create MDIClientWindow");
     }
 }
Ejemplo n.º 3
0
Archivo: MDI.cs Proyecto: wshcdr/wxnet
        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));
        }
Ejemplo n.º 4
0
Archivo: MDI.cs Proyecto: wshcdr/wxnet
        //-----------------------------------------------------------------------------

        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
        }
Ejemplo n.º 5
0
Archivo: MDI.cs Proyecto: wshcdr/wxnet
        //-----------------------------------------------------------------------------

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

        public MDIChildFrame(MDIParentFrame parent, string title)
            : this(parent, Window.UniqueID, title, wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE, "mdiChildFrame")
        {
        }
Ejemplo n.º 10
0
Archivo: MDI.cs Proyecto: wshcdr/wxnet
 public MDIChildFrame(MDIParentFrame parent, int id, string title, Point pos, Size size, long style)
     : this(parent, id, title, pos, size, style, "mdiChildFrame")
 {
 }
Ejemplo n.º 11
0
Archivo: MDI.cs Proyecto: wshcdr/wxnet
 public MDIChildFrame(MDIParentFrame parent, int id, string title, Point pos)
     : this(parent, id, title, pos, wxDefaultSize, wxDEFAULT_FRAME_STYLE, "mdiChildFrame")
 {
 }
Ejemplo n.º 12
0
 public bool LayoutMDIFrame(MDIParentFrame frame, Rectangle rect)
 {
     return(wxLayoutAlgorithm_LayoutMDIFrame(wxObject, Object.SafePtr(frame), ref rect));
 }