public wiwAdo(wx.Window _pc, wx.Sizer _ps) : base(wx.Orientation.wxHORIZONTAL) { int fl = wx.Alignment.wxALIGN_CENTRE_VERTICAL|wx.Direction.wxRIGHT; _props = new wdbAdoProps(); _btn_first = new wx.Button(_pc, -1, "|<", wx.Button.wxDefaultPosition, new Size(20, -1)); _btn_prev = new wx.Button(_pc, -1, "<", wx.Button.wxDefaultPosition, new Size(20, -1)); _ado_text = new wx.TextCtrl(_pc, -1, "Ado", wx.Button.wxDefaultPosition, new Size(100, -1)); _btn_next = new wx.Button(_pc, -1, ">", wx.Button.wxDefaultPosition, new Size(20, -1)); _btn_last = new wx.Button(_pc, -1, ">|", wx.Button.wxDefaultPosition, new Size(20, -1)); _btn_new = new wx.Button(_pc, -1, "+", wx.Button.wxDefaultPosition, new Size(20, -1)); _btn_canc = new wx.Button(_pc, -1, "-", wx.Button.wxDefaultPosition, new Size(20, -1)); this.Add(_btn_first, 0, fl, 2); this.Add(_btn_prev, 0, fl, 2); this.Add(_ado_text, 0, fl, 2); this.Add(_btn_next, 0, fl, 2); this.Add(_btn_last, 0, fl, 2); this.Add(_btn_new, 0, fl, 2); this.Add(_btn_canc, 0, fl, 2); _p_container = _pc; _p_sizer = _ps; _sizer_item = null; _ado_cur_index++; string name = "Ado" + _ado_cur_index.ToString(); SetDefaultProps(name); SetWidgetProps(); }
// private Properties.WidgetPropsManager _prop_man; // Constructor is 'protected' protected Common() { _cur_element = null; _cur_window = null; _obj_props_panel = null; _cur_action = CommandFlags.TB_NONE; _obj_tree_il = null; _py_editor = new mkdb.Python.PyFileEditor(); // _prop_man = new mkdb.Properties.WidgetPropsManager(); }
public wiwGridSizer(wx.Window _pc, wx.Sizer _ps) : base(2, 2, 0, 0) { _props = new wdbGridSizerProps(); _grid_cur_index++; string name = "GridSizer" + _grid_cur_index.ToString(); SetDefaultProps(name); SetWidgetProps(); _p_container = _pc; _p_sizer = _ps; _sizer_item = null; }
public wiwBoxSizer(wx.Window _pc, wx.Sizer _ps) : base(wx.Orientation.wxVERTICAL) { _props = new wdbBoxSizerProps(); _frame_cur_index++; string name = "BoxSizer" + _frame_cur_index.ToString(); SetDefaultProps(name); SetWidgetProps(); _p_container = _pc; _p_sizer = _ps; _sizer_item = null; }
public wiwTextEdit(wx.Window _pc, wx.Sizer _ps) : base(1, 2, 0, 0) { _props = new wdbTextEditProps(); this.AddGrowableCol(1); _sub_label = new wx.StaticText(_pc, -1, "TextEdit"); _sub_text = new wx.TextCtrl(_pc, -1, ""); this.Add(_sub_label, 0, wx.Alignment.wxALIGN_CENTER_VERTICAL|wx.Direction.wxLEFT, 5); this.Add(_sub_text, 0, wx.Alignment.wxALIGN_CENTER_VERTICAL|wx.Stretch.wxEXPAND|wx.Direction.wxRIGHT, 5); _p_container = _pc; _p_sizer = _ps; _sizer_item = null; _text_cur_index++; string name = "TextEdit" + _text_cur_index.ToString(); SetDefaultProps(name); SetWidgetProps(); }
public void ChangeCurrentWindow(WidgetTreeNode neww) { if (neww.Widget.WidgetType == (int)StandardWidgetType.WID_APP) { // Hide, when we select the application. if (_cur_window != null) _cur_window.Hide(); } IWDBBase _cur = FindTopMostFrame(neww); if (_cur != null) { if (_cur_window != null) _cur_window.Hide(); _cur_window = (wx.Window)_cur; _cur_window.Show(); } }
public void ChangeCurrentWindow(wx.Window neww) { if (_cur_window != null) _cur_window.Hide(); _cur_window = neww; _cur_window.Show(); }
// Constructor is 'protected' protected Common() { _cur_window = null; }