GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

GroupBox widget

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
giaur



Joined: 09 May 2007
Posts: 3

PostPosted: Wed May 09, 2007 7:12 pm    Post subject: GroupBox widget Reply with quote

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?
Back to top
openldev
Never Seen the Sunlight


Joined: 21 Sep 2005
Posts: 376
Location: State College, Pennsylvania

PostPosted: Wed May 09, 2007 9:45 pm    Post subject: Reply with quote

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.
Back to top
Micah Carrick
Never Seen the Sunlight


Joined: 21 Sep 2005
Posts: 428
Location: Portland, OR USA

PostPosted: Thu May 10, 2007 5:16 am    Post subject: Reply with quote

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.
Back to top
giaur



Joined: 09 May 2007
Posts: 3

PostPosted: Thu May 10, 2007 5:44 pm    Post subject: Reply with quote

Yes, it works. Thanks for responses.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP