Re: Scrolling the rulers ...


Subject: Re: Scrolling the rulers ...
From: Mike Nordell (tamlin@algonet.se)
Date: Mon May 08 2000 - 16:52:11 CDT


> I'm now just doing a few comparisons of the Photon
> version of AbiWord against it's Windows cousin.
[snip]
> I was expecting that in the Frame's ScrollEvent
> code there would be something that would update
> the view/positioning of the rulers ... but I don't
> see that.
>
> Any insight folks?

You migh want to have a look in ap/xp/ap_TopRuler.cpp,
AP_TopRuler::scrollRuler.

To help you understand what's happening.
Lets say you added a character that made the view/ruler scroll, call
stack becomes:

  FV_View::_ensureThatInsertionPointIsOnScreen
  FV_View::cmdScroll
  AV_View::sendHorizontalScrollEvent
  AP_TopRuler::_scrollFuncX
  AP_TopRuler::scrollRuler
  GR_<OS>Graphics::scroll(/* 6 UT_sint args */)

Looking into QNX Graphics, I notice this member function is not
implemented. I think we found out why Photon doesn't scroll the ruler.
:-)

/Mike



This archive was generated by hypermail 2b25 : Mon May 08 2000 - 16:04:48 CDT