LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-25-2006, 07:18 PM   #1
BobS0327
LQ Newbie
 
Registered: Apr 2006
Posts: 4

Rep: Reputation: 0
GTK+- widgets, want to pack them in nonuniform manner


I'm using gtk_vbox_new and gtk_hbox_new to pack widgets on a window. My problem is that the packing is too uniform. Every widget is assigned the same uniform box size.

An example of want I want to accomplish. My first horizontal widget would be a text box, the next widget would be a listview and the third horizontal widget would again be a text box. I would like to have each widget be of a different vertical and horizontal length. The text box would be one row vertically and one column horizontally, the listview would be four rows vertically and two columns horizontally and the next text box would again be one row vertically and two columns horizontally. How can I accomplish this nonuniform positioning?

Thanx in advance for any assistance offered

Bob

Last edited by BobS0327; 04-25-2006 at 08:22 PM.
 
Old 04-26-2006, 11:54 AM   #2
astorm
LQ Newbie
 
Registered: Nov 2005
Distribution: Slackware
Posts: 23

Rep: Reputation: 15
The antidote to your predicament is a table. It's incredibly easy to specify how you want everything layed out by passing which table coordinates to "attach" to.
 
Old 04-26-2006, 04:30 PM   #3
BobS0327
LQ Newbie
 
Registered: Apr 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Thanx for the Table info!!!!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Widgets are not displaying while execution+GTK santhosh.linux Programming 1 03-17-2006 04:15 PM
GTK theme: not all widgets are changed kornerr Linux - General 1 01-16-2006 09:05 AM
Can sub processing modify the parent's Gtk Widgets? asnoka Programming 2 12-24-2005 03:35 AM
GTK widgets don't show text phaidros Linux - Software 0 12-16-2003 06:45 AM
GTK problem: no text in widgets phaidros Linux - Newbie 0 12-16-2003 02:16 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration