Re: quick question about text box
- From: Owen Taylor <otaylor gtk org>
- To: A Dark Elf <drow darkelf net>
- Cc: gtk-list redhat com
- Subject: Re: quick question about text box
- Date: 05 Jun 1998 13:04:39 -0400
A Dark Elf <drow@darkelf.net> writes:
> Anyone knows how to make a text box (in a table) so its vertical size
> stays the same (ie. 2 lines) even if you resize the window ?
If you just don't set the GTK_EXPAND y-flag when inserting into
the table, it should stay the same size when you resize the
table. You can control the initial allocation with
gtk_widget_set_usize (text, -1, 30 /* size in pixels */)
It would be nice if this could be done in lines, instead of
pixels... (A gtk_text_set_min_heigh_lines() would be fairly
easy to add)
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]