[MonoDevelop] Using MonoDevelop's dockings
Lluis Sanchez
lluis at ximian.com
Tue Dec 11 07:34:36 EST 2007
El dv 07 de 12 del 2007 a les 13:20 +0100, en/na Alejandro Serrano va
escriure:
> Hi,
> I've been trying to use the widgets that MonoDevelop uses for docking in
> my own application. However, I haven't found any way to make it work :(
>
> As for now, I have copied the MonoDevelop.Dock folder and compiled it
> apart from MonoDevelop. Everything compiles file.
>
> Now I have created a new MonoDevelop project with a Windows, and I've
> included the following code:
>
> VBox box = new VBox();
> this.Add(box);
>
> DockFrame frame = new DockFrame();
> box.PackStart(frame, true, true, 0);
>
> DockItem it = frame.AddItem("Ejemplo");
> it.Label = "Ejemplo";
> it.Content = new Button(Stock.Ok);
> it.Visible = true;
You need to create a layout. Try doing this here:
frame.CreateLayout ("Default");
frame.CurrentLayout = "Default";
>
> this.ShowAll();
>
> However, nothing shows in the screen.
> What am I doing wrong? Can I use the docking widgets this way?
>
> Thanks in advance,
> Alejandro
>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
More information about the Monodevelop-list
mailing list