Re: [gtkmm] Flickering TextView in ScrolledWindow
- From: Morten Brix Pedersen <morten wtf dk>
- To: Andreas Holzmann <Andreas Holzmann epost de>
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] Flickering TextView in ScrolledWindow
- Date: Thu, 11 Jul 2002 02:15:54 +0200
Hi Andreas,
(sorry, forgot to reply to the list)
* Andreas Holzmann <Andreas Holzmann epost de> [2002-07-11 00:38:03]:
> On Tue, 2002-07-09 at 16:23, Morten Brix Pedersen wrote:
> > I'm porting my application to gtkmm2, which means that I'm replacing
> > Gtk::Text with Gtk::TextView. However, the code used to scroll down
> > automatically flickers the screen.
[...]
> The following should work in the right way:
>
> void AppWindow::insertText()
> {
> // see if the scrollbar is located in the bottom, then we need to scroll
> // after insert
> bool scroll = false;
> if (_swin.get_vadjustment()->get_value() >= (_swin.get_vadjustment()->get_upper() - _swin.get_vadjustment()->get_page_size() - 1e-12))
Wonderful, works like a charm. Can you explain the above line?
Thanks.
- Morten.
--
http://wtf.dk/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]