Tabs and popups



Hi,

I was wondering what the best way would be to implement a pane, containing
various widgets, as a popup (but without window decorations) which would be
shown when a relevent tab is pressed.  It would disappear when the mouse is
moved off it, and could be "torn" off like a menu to form a permanent dialog.
The nearest example I can find for this is from Photoshop Elements - see this
link for a screenshot:

http://z.about.com/d/graphicssoft/1/0/J/P/1/cs2-workspace-6palettewell.gif

I guess I could use a GtkNotebook for the tabs, but it would probably be cleaner
to code them myself.  Would a GtkMenu be the best solution for the popup, and if
so, how would I position it so that it aligned correctly with the tab?

I think that such a widget would save space, whilst still allowing easy access
to (eg) tool options, if used correctly.  If anyone has a suggestion for
something else already present in GTK that would be better suited to this
purpose, I'm open to suggestions too :o)  I'm not too keen on forcing people to
traverse menus in this particular instance.

Best regards,

Chris.

Chris Garrett
UNIX Administrator
MISD Operations Group, University of Cambridge 
01223-(7)66687




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