calculating visible client area of a view

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

calculating visible client area of a view

Jochen Riekhof
Hi again...

for mouse tracking I needed the visible poriton of a views client area (e.g.
when inside scrollingDecorator). I could not find any method for it, is
there any in the base system? Or if not maybe in windows?
I wrote the appended one for now, in case anyone has a similar requirement.

Ciao

...Jochen

---------
visibleClientRectangle
| r v |
r := self clientRectangle.
v := self.
[v isTopView] whileFalse:
[v := v parentView.
r := r intersect: (v mapRectangle: v clientRectangle to: self)].
^r