Re: [gtk-list] (simple question #2): scrollbar on editor widget?



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



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