public wifInnerFrame(wx.Window _parent, int _id, string _title, Point _pos, Size _size, uint _style) : base(_parent, _id, _pos, _size, wx.Panel.wxRAISED_BORDER | wx.Panel.wxFULL_REPAINT_ON_RESIZE) { wintitle = _title; style = _style; m_sizing = mSizing.NONE; m_resizeBorder = 10; // title_bar = new wifInnerTitleBar(this, -1, _title, new Point(0, 0), new Size(this.Width, 20), _style); // frame_content = new wifInnerFrameContent(this, -1, new Point(0, 0), wx.Panel.wxDefaultSize); frame_content = new wx.Panel(this, -1, new Point(0, 0), wx.Panel.wxDefaultSize, 0); // wx.BoxSizer sizer = new wx.BoxSizer(wx.Orientation.wxVERTICAL); sizer.Add(title_bar, 0, wx.Stretch.wxGROW | wx.Direction.wxRIGHT, 2); wx.BoxSizer horiSizer = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL); horiSizer.Add(frame_content, 1, wx.Stretch.wxGROW); sizer.Add(horiSizer, 1, wx.Stretch.wxGROW | wx.Direction.wxBOTTOM | wx.Direction.wxRIGHT, 2); SetSizer(sizer); this.AutoLayout = true; Layout(); m_minSize = title_bar.MinSize; m_minSize.Width += 8; m_minSize.Height += 10; m_baseMinSize = m_minSize; this.EVT_MOTION(new wx.EventListener(OnMouseMotion)); this.EVT_LEFT_DOWN(new wx.EventListener(OnLeftDown)); this.EVT_LEFT_UP(new wx.EventListener(OnLeftUp)); this.EVT_UPDATE_UI(this.ID, new wx.EventListener(OnUpdateUI)); }
public InnerFrame(wx.Window _parent, int _id, string _title, Point _pos, Size _size, uint _style) : base(_parent, _id, _pos, _size, wx.Panel.wxRAISED_BORDER | wx.Panel.wxFULL_REPAINT_ON_RESIZE) { wintitle = _title; style = _style; // title_bar = new InnerTitleBar(this, -1, wx.Panel.wxDefaultPosition, wx.Panel.wxDefaultSize, _style); frame_content = new wx.Panel(this, -1, wx.Panel.wxDefaultPosition, wx.Panel.wxDefaultSize, 0); // wx.BoxSizer sizer = new wx.BoxSizer(wx.Orientation.wxVERTICAL); sizer.Add(title_bar, 0, wx.Stretch.wxGROW | wx.Direction.wxRIGHT, 2); wx.BoxSizer horiSizer = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL); horiSizer.Add(frame_content, 1, wx.Stretch.wxGROW); sizer.Add(horiSizer, 1, wx.Stretch.wxGROW | wx.Direction.wxBOTTOM | wx.Direction.wxRIGHT, 2); SetSizer(sizer); this.AutoLayout = true; Layout(); }