Re: TextView problem
- From: "luo yong" <luoyong_zh hotmail com>
- To: gtk-perl-list gnome org
- Subject: Re: TextView problem
- Date: Wed, 14 Sep 2005 02:01:07 +0000
I put the TextView widget into a scrolled window and set the wrap mode to
"word_char",the problem solved.
thank you all.
--yong
Date: Tue, 13 Sep 2005 14:07:52 +0200
From: "A. Pagaltzis" <pagaltzis gmx de>
Subject: Re: TextView problem
To: gtk-perl-list gnome org
Message-ID: <20050913120752 GL12484 klangraum>
Content-Type: text/plain; charset=us-ascii
* 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.
Regards,
--
#Aristotle
*AUTOLOAD=*_=sub{s/(.*)::(.*)/print$2,(",$\/"," ")[defined
wantarray]/e;$1};
&Just->another->Perl->hacker;
------------------------------
Date: Tue, 13 Sep 2005 08:40:36 -0400
From: muppet <scott asofyet org>
Subject: Re: TextView problem
To: gtk-perl mailing list <gtk-perl-list gnome org>
Message-ID: <35D34CB3-AE54-40F7-88A1-0AA1F22923F4 asofyet org>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
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
_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]