GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sat Nov 29, 2014 7:23 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: How to set the window size to max height?
PostPosted: Wed Oct 03, 2007 11:40 am 
Offline

Joined: Wed Oct 03, 2007 11:37 am
Posts: 2
Hello everyone!

I'm a beginner of GTK+ Development. I want my application run like this:

when it opens, the window's width is set to 1024, and its height will be set
to the current available max height size. It's not the size of resolution of
current screen. Just the maximize window's height, the size not include the
two gnome-panel below and above, sometimes is a dock(awn or kiba-dock).

I tried several method, but failed.

Anyone can give me an idea?
Thank you very much.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 03, 2007 2:53 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 12:07 am
Posts: 563
Location: Portland, OR USA
You're going to want to do some reading up on how Windows are sized and GTK+ basics. Most people will tell you not to do what you're asking to do--that it goes against some principles of usability. Allow the end user to decide what size the window is best for them and then remember that size next time your application loads.

In any case, check out:
gtk_window_set_default_size ()
gtk_widget_set_size_request ()
gtk_window_maximize ()

_________________
Micah Carrick - Forum Administrator
http://www.micahcarrick.com


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 05, 2007 2:10 am 
Offline

Joined: Wed Oct 03, 2007 11:37 am
Posts: 2
Thank you! :D

I think I should read more about API.


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 3 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