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 Oct 21, 2014 10:21 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: GroupBox widget
PostPosted: Wed May 09, 2007 7:12 pm 
Offline

Joined: Wed May 09, 2007 7:06 pm
Posts: 3
Hello,

I'm using Glade 2 on linux. There are many Windows controls equiwalents, but I can't find anything like GroupBox Windows control.

Is there this kind of widget exist in GTK? It seems - yes, because there are a lot of GTK apps, that use Windows-style groupbox control.

But I can't find it anywhere... Any tips for me?


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 09, 2007 9:45 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 3:07 am
Posts: 384
Location: Fairfax, Virginia
You are looking for the GtkFrame widget. It is a GtkContainer that can hold only 1 child, has an optional border, and an optional label.

_________________
Andrew Krause

Foundations of GTK+ Development: Buy now for only $31.49!


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 10, 2007 5:16 am 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 12:07 am
Posts: 563
Location: Portland, OR USA
I don't know what you're using the frame control for, however, if you're using it for radio buttons you'll have to note that unlike in Windows with the GroupBox control, the GtkFrame widget does not serve as the "group" for a set of radio buttons. Instead, you assign them to an abstract group when you create each GtkRadio widget or you use the group created by the first GtkRadio widget you create.

This is better explained in the GTK+ 2.0 Tutorial or in Andrew's book Foundations of GTK+ Development.

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


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 10, 2007 5:44 pm 
Offline

Joined: Wed May 09, 2007 7:06 pm
Posts: 3
Yes, it works. Thanks for responses.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 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