 |
GTK+ Forums Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
|
|
|
| Author |
Message |
|
|
giaur
Joined: 09 May 2007 Posts: 3
|
Posted: Wed May 09, 2007 7:12 pm Post subject: GroupBox widget |
|
|
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
|
Posted: Wed May 09, 2007 9:45 pm Post subject: |
|
|
| 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: 426 Location: Portland, OR USA
|
Posted: Thu May 10, 2007 5:16 am Post subject: |
|
|
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
|
Posted: Thu May 10, 2007 5:44 pm Post subject: |
|
|
| Yes, it works. Thanks for responses. |
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group CodeBB 1.0 Beta 2
|