GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Fri Aug 22, 2014 9:38 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Positioning on subwindow
PostPosted: Tue Dec 20, 2011 3:32 pm 
Offline
Familiar Face

Joined: Tue Dec 20, 2011 3:27 pm
Posts: 14
Dear all,

i am wandering if is possible to position some GtkDrawingArea inside a window as in the scheme below:

Code:
    +------------------------------+
    |                              |
    |   +------+                   |
    |   |      |                   |
    |   |   +----------+           |
    |   +---|          |           |
    |       |          |           |
    |       +----------+           |
    +------------------------------+


If it is not possible with drawing area, is there some other widget that can be used ?

many thanks
Regards,
angelo


Top
 Profile  
 
 Post subject: Re: Positioning on subwindow
PostPosted: Tue Dec 20, 2011 7:03 pm 
Offline
Never Seen the Sunlight

Joined: Thu Mar 24, 2011 2:10 pm
Posts: 328
Location: Sydney, Australia
You should be able to do this with a gtkfixed container that allows absolute positioning of widgets and thus partially overlapping widgets. You can then put whatever widget you want inside the fixed containers.Whether the rendering will work in the way you want; however, I'm not certain of. There are also a lot of things that can go wrong with using the fixed widget (e.g. having fixed a size widget when all other widgets vary in size with the theme can really mess up the layout if the user changes theme from what you've designed it for).


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: newguy and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group