[Gtk-sharp-list] Gtk.HandleBox doubts
Mon, 29 Nov 2004 18:05:42 +0000
I am looking for a container widget which allows me to resize it
(horizontally or vertically) and its children.
Using Glade just for checking one widget that would fit my needs, I've
Afaict (As-Fair-As-I-Can-Tell :D), this widget is very easy to use, so
I've tried to get it to work using the attached code.
When running, it appears as I want it, but when I drag the "handle" it
hasn't the behavior I wish. Does anyone on the list knows this widget
funtioning? Have I missed something?
Thanks in advance,
Content-Disposition: attachment; filename=test.cs
Content-Type: text/x-csharp; name=test.cs; charset=UTF-8
public class Test
public static void Main(string args)
Window w = new Window("Test");
TreeView t = new TreeView();
ScrolledWindow scroll = new ScrolledWindow();
HandleBox handle = new HandleBox();
ScrolledWindow scroll_canvas = new ScrolledWindow();
Gnome.Canvas canvas = new Gnome.Canvas();
HBox h = new HBox();
h.PackStart(scroll, false, false, 0); // another Gtk.ScrolledWindow with a TreeView inside.
h.PackStart(handle, true, true, 0);
w.DeleteEvent += OnWindowDeleteEvent;
private static void OnWindowDeleteEvent(object o, DeleteEventArgs args)