Re: [gtk-list] Text Entry Size

Nathan Heagy wrote:
> I am writing a simple GTK program after going through the tutorial. My
> problem is this: how do I set the width of a text-entry box? I want the
> height to remain the same, but I would like the width to be smaller.

You need to  use the gtk_widget_set_usize call, which is in
pixels, so you will probibly also need to use gdk_string_width()
to calculate a size, and maybe gtk_entry_set_max_length if you want
to limit the number of characters entered.

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