[10409] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: (simple question #2): scrollbar on editor widget?
daemon@ATHENA.MIT.EDU (Tom Vogt)
Tue Nov 24 16:37:43 1998
Date: Tue, 24 Nov 1998 21:51:02 +0100
From: Tom Vogt <tom@lemuria.org>
To: gtk-list@redhat.com
In-Reply-To: <199811241336.NAA24242@diamond.tao.co.uk>; from David Given on Tue, Nov 24, 1998 at 01:36:56PM +0000
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
David Given <david_given@tao.co.uk> wrote:
> I've tried putting it in a scrolled window, but that doesn't work (nor did I
> expect it to).
had the same problem a while ago, frederico posted the following solution:
> I have a scrolled window with a textbox inside. the textbox is changed from
> outside, and the scrollbars on the scrolled window don't change. how do I
> tell the scrolled window that it's contents have changed and it might have
> to update it's scrollbars?
> shouldn't it notice this automatically?
After you create the text widget, you should get its adjustments and
create scrollbars for them. The text widget does not have hadjustment
and vadjustment object arguments, so you cannot just pop it into a
scrolled window and expect it to work.
Federico
--
Those who do not understand Unix are condemned to reinvent it, poorly.
-- Henry Spencer
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null