Beispiel #1
0
 public wdbFrame(wx.Window _pc, wx.Sizer _ps)
     : base("Frame")
 {
     this.ImageIndex = 5;
     this.SelectedImageIndex = 5;
     // Create a wxWindow on the top of canvas panel.
     wx.Frame hfrm = new wx.Frame(null, -1, "");
     _elem = new wiwFrame(hfrm);
     _elem.InsertWidget();
     wx.Window win = (wx.Window)_elem;
     Win32Utils.SetParent(win.GetHandle(), Common.Instance().Canvas.Handle);
     wiwFrame wf = (wiwFrame)_elem;
     this.Text = wf.Name;
 }
Beispiel #2
0
 void ToolStripButtonClick(object sender, EventArgs e)
 {
     TreeView objtree = Common.Instance().ObjTree;
     WidgetTreeNode node = new WidgetTreeNode("Frame");
     //
     //
     wx.Frame hfrm = new wx.Frame(null, -1, "");
     node.Widget = new wiwFrame(hfrm);
     wx.Window win = (wx.Window)node.Widget;
     node.Widget.InsertWidget();
     Win32Utils.SetParent(win.GetHandle(), Common.Instance().Canvas.Handle);
     // wdbFrame wdbf = new wdbFrame(null, null);
     node.ImageIndex = _img_index;
     node.SelectedImageIndex = _img_index;
     WidgetTreeNode app = (WidgetTreeNode)objtree.Nodes[0];
     app.Nodes.Add(node);
     objtree.SelectedNode = node;
     // _tapp.Nodes.Add(wdbf);
     // Common.Instance().ObjTree.SelectedNode = wdbf;
 }