[Gtk-sharp-list] Gtk.VPaned events
w.mauer at top-soft.info
w.mauer at top-soft.info
Mon Jun 25 06:49:01 EDT 2007
Hi all,
i want to get some events from a VPaned.
Monodevelop generate this:
public partial class MainWindow {
private Gtk.VPaned vpaned1;
private Gtk.TreeView treeview1;
private Gtk.TreeView treeview2;
protected virtual void Build() {
Stetic.Gui.Initialize();
// Widget Workspace.MainWindow
this.Name = "Workspace.MainWindow";
this.Title = Mono.Unix.Catalog.GetString("MainWindow");
this.WindowPosition = ((Gtk.WindowPosition)(4));
// Container child Workspace.MainWindow.Gtk.Container+ContainerChild
this.vpaned1 = new Gtk.VPaned();
this.vpaned1.CanFocus = true;
this.vpaned1.Name = "vpaned1";
this.vpaned1.Position = 112;
// Container child vpaned1.Gtk.Paned+PanedChild
this.treeview1 = new Gtk.TreeView();
this.treeview1.CanFocus = true;
this.treeview1.Name = "treeview1";
this.vpaned1.Add(this.treeview1);
Gtk.Paned.PanedChild w1 = ((Gtk.Paned.PanedChild)(this.vpaned1[this.treeview1]));
w1.Resize = false;
// Container child vpaned1.Gtk.Paned+PanedChild
this.treeview2 = new Gtk.TreeView();
this.treeview2.CanFocus = true;
this.treeview2.Name = "treeview2";
this.vpaned1.Add(this.treeview2);
this.Add(this.vpaned1);
if ((this.Child != null)) {
this.Child.ShowAll();
}
this.DefaultWidth = 400;
this.DefaultHeight = 300;
this.Show();
this.vpaned1.MoveHandle += new Gtk.MoveHandleHandler(this.OnVpaned1MoveHandle);
this.vpaned1.CancelPosition += new Gtk.CancelPositionHandler(this.OnVpaned1CancelPosition);
this.vpaned1.AcceptPosition += new Gtk.AcceptPositionHandler(this.OnVpaned1AcceptPosition);
this.vpaned1.ToggleHandleFocus += new Gtk.ToggleHandleFocusHandler(this.OnVpaned1ToggleHandleFocus);
this.vpaned1.CycleChildFocus += new Gtk.CycleChildFocusHandler(this.OnVpaned1CycleChildFocus);
this.treeview2.ResizeChecked += new System.EventHandler(this.OnTreeview2ResizeChecked);
}
}
but this never will reached
void OnVpaned1MoveHandle (object o, Gtk.MoveHandleArgs args)
{
throw new Exception("OnVpaned1MoveHandle");
}
void OnVpaned1CancelPosition (object o, Gtk.CancelPositionArgs args)
{
throw new Exception("OnVpaned1CancelPosition");
}
void OnVpaned1AcceptPosition (object o, Gtk.AcceptPositionArgs args)
{
throw new Exception("OnVpaned1AcceptPosition");
}
void OnVpaned1ToggleHandleFocus (object o, Gtk.ToggleHandleFocusArgs args)
{
throw new Exception("OnVpaned1ToggleHandleFocus");
}
void OnVpaned1CycleChildFocus (object o, Gtk.CycleChildFocusArgs args)
{
throw new Exception("OnVpaned1CycleChildFocus");
}
void OnTreeview2ResizeChecked (object sender, System.EventArgs e)
{
throw new Exception("OnTreeview2ResizeChecked");
}
Thanks for Help
/
Wolfgang
More information about the Gtk-sharp-list
mailing list