[Lazarus] ptInRect question

Michael Van Canneyt michael at freepascal.org
Fri Jan 30 09:34:08 CET 2009



On Fri, 30 Jan 2009, Hans-Peter Diettrich wrote:

> Michael Van Canneyt schrieb:
> 
> > Is there a reason why the top/left sides are included (>=), and the
> > left/bottom sides are not included ? I would expect them to be included as well.
> 
> There exist reasons, mostly the definition in the WinAPI.

Thanks to you, and everyone else, for the answers.

All I really needed to know is whether the cursor is at an edge of a
rectangle (above a selected object, in fact). And in that case it 
turns out that ptinrect is definitely out....

Michael.



More information about the Lazarus mailing list