List Info

Thread: Using MonoDevelop's dockings




Using MonoDevelop's dockings
country flaguser name
United States
2007-12-07 06:20:03
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;
		
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-listlists.ximian.com
http://lists.ximian.com/mailman/listinfo/monodevelop-li
st

Re: Using MonoDevelop's dockings
user name
2007-12-11 06:34:36
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-listlists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-li
st

_______________________________________________
Monodevelop-list mailing list
Monodevelop-listlists.ximian.com
http://lists.ximian.com/mailman/listinfo/monodevelop-li
st

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )