[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

how do I size clist columns to match widget width??



I have a clist with a entry widget under each column like this:

--------------------------------
| name | value | bool | value  |
--------------------------------
|                              |
|                              |
|                              |
--------------------------------
 ______   _______   _     _______
|______| |_______| |_|   |_______|


I use this code to resize the widgets when the column is resized.
This is for gtkmm, but it should be close enough for anyone to 
understand.

void
CanvasCListPanel::columnWasResized ( gint column, gint width )
{
  widgets [ column ] -> set_usize ( width, -1 );
}

My problem is that the widgets are larger than the clist columns.
The clist and a hbox are packed into a vbox. The entry widgets are
packed into the hbox. I have added no padding when I packed the
widgets into the hbox. 

I assume my problem is some default padding somewhere. 
Does anybody know how to fix this without finding a magic number
somewhere in the gtk+ code and copying it into my code?

thanks,
Todd
 
-- 
   | Todd Dukes                      E-MAIL:  tdukes@ibmoto.com |
   | Motorola Somerset                  Phone:   (512) 424-8008 |
   | 6200 Bridgepoint Parkway Building #4 MS OE70               |
   | Austin, Texas 78730                                        |



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]