Re: aligning widgets
- From: Havoc Pennington <hp redhat com>
- To: Timothy Flechtner <Timothy Flechtner tellabs com>
- Cc: gtk-list gnome org
- Subject: Re: aligning widgets
- Date: 19 Feb 2001 12:07:19 -0500
Timothy Flechtner <Timothy Flechtner tellabs com> writes:
> i'm trying to create a table, and supply it with headers, one per column.
> for the life of me, i can't figure out how to
> get the header width and the column width to match. created an hbox and
> packed a bunch for frames containing labels
> in to it for the headers, then created a scrolled window, in which i put
> my
> table. when i try to take the width of each frame in
> the headers box, it invariably comes back as 1, which leads me to believe
> it hasn't been set yet. i was hoping to use that
> to set the width of each cell in the table in the same column as that
> header.
>
Your head-banging is caused by trying to mix automatic layout
management with positioning stuff yourself.
If you want to do all the work, just stick it all in a GtkFixed. To
get the size of a widget in that case, use gtk_widget_size_request().
Normally to have headers for a table, I'd just put the headers into
the first row of the table itself though.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]