Re: How you can make Attachable Windows? Attachable ->" Dockable"



On Tue, 2008-08-05 at 10:33 -0500, John Hobbs wrote:
> Try to avoid the double post Dimitri :-)
> 
> Not sure 100% what you are looking for, but with Gtk::Notebook you can
> put the notebooks in groups and tabs can be interchanged between
> notebooks.  Is that similar to what you are looking for?

i suspect something closer to tear-off windows.

these are hard to implement in GTK. there is a widget (Gtk::HandleBox)
that allows you to tearoff a box and for that basic purpose it works
very well. the problem is that it leaves space for itself behind in the
parent container. this is not normally what you want.

i looked at inkscape (it was sodipodi then) and copied their ideas to
give me Gtkmm2ext::Tearoff

http://viewcvs.ardour.org/index.cgi/ardour2/ardour2/branches/2.0-ongoing/libs/gtkmm2ext/gtkmm2ext/tearoff.h?view=markup
http://viewcvs.ardour.org/index.cgi/ardour2/ardour2/branches/2.0-ongoing/libs/gtkmm2ext/tearoff.cc?view=markup

this has signals associated with it that allow the parent to re-use
"space" it used to occupy.

--p





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]