GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Tue Sep 23, 2014 8:24 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [Solved]Window spacing help (laying out widgets)
PostPosted: Thu Apr 12, 2007 11:45 am 
Offline

Joined: Sat Mar 24, 2007 8:53 am
Posts: 3
I'm learning mono and C# with Gtk+ and I'm wondering if there is there a good way to get padding around the window edges? (as opposed to adding a vbox then an hbox inside that)

I can get spacing between widgets inside the window no problem, but between the window itself and the widgets inside......

Image
(Sorry I can't get window borders to show up in screen captures atm)

cheers!


Last edited by frychiko on Thu Apr 12, 2007 2:44 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 12, 2007 11:55 am 
Offline

Joined: Sat Mar 24, 2007 8:53 am
Posts: 3
Okay, I've found the solution minutes after posting this, I feel so silly!

Answer:
Code:
window.BorderWidth = 20; (for example)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 12, 2007 4:36 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 12:07 am
Posts: 563
Location: Portland, OR USA
Yep, simply right? But, never hurts to ask. We all got to start somewhere.

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


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: No registered users 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