Re: TextView problem

On Sep 13, 2005, at 8:07 AM, A. Pagaltzis wrote:

* luo yong <luoyong_zh hotmail com> [2005-09-13 13:20]:

I put an TextView on a window with Gtk2::TextView.But when I
input a long line of text into it,the widget always expand
itself to fit the text.How can let the widget dont't do this?

Put it inside a Gtk2::ScrolledWindow.

Also try messing around with the text view's wrap mode. Some combination of ScrolledWindow scrollbar visibility policy and TextView wrap mode will do exactly what you want.

Without treatment, a common cold will last about seven days.
With treatment, it will last about a week.
  -- conventional wisdom

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