Re: [gtkmm] TextView resizing



Yes, it is placed in a ScrolledWindow. If I let it use a horizontal
scrollbar then the TextView widget causes horizontal scrolling
instead, if I set it to Gtk::POLICY_NEVER then it does the behaviour
described as before.

Additionally, since the original question I noticed if I do a
set_size_request on the scrolled window widget then it displays
different behaviour - the TextView now doesn't cause resizing, but
instead scrolls horizontally, even for Gtk::POLICY_NEVER on the
horizontal scrollbar (just no scrollbar appears).

Ideally I'd like it to resort to character wrapping when a word is
longer than a line - and I've seen this behaviour in gaim which uses
gtk+ 2 directly, but I can't seem to replicate the setup with gtkmm 2.

Barnaby

On Fri, Dec 27, 2002 at 03:27:45PM +0100, Ole Laursen wrote:
> Barnaby Gray <bee pickle me uk> writes:
> > > I have a TextView with a wrap mode of Gtk::WRAP_WORD, but this means
> > > when long lines of characters (without any spaces) are inserted the
> > > widget resizes to very large widths to fit these without wrapping. Is
> > > there any way of stopping these resizes?
> 
> I've never actually used a TextView, but I've experienced something
> similar with a TreeView. Have you tried placing the TextView in a
> ScrolledWindow? That did the trick for me.



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