>Will a click event on an unusually shaped object be generated for the
>rectangular bounding box of the shape or specifically within the bounds of
>the shape?
>
>I see the latter to be hard to implement.

Dylan,

 it's not that hard. Initial hit-testing is done with object's rects for
speed reasons, but when we have a button whose Rect has been hit, we can
use API calls to determine whether the point was in the shape. If there is
no support for this kind of hit-testing, we could as a last resort draw the
object's custom shape into a bitmap and fill it black, then we'd just have
to check whether that pixel is black or white. If it's white we get rid of
the pixMap and resume checking rects.

Cheers,
-- M. Uli Kusterer

------------------------------------------------------------
             http://www.weblayout.com/witness
       'The Witnesses of TeachText are everywhere...'

--- HELP SAVE HYPERCARD: ---
Details at: http://www.hyperactivesw.com/SaveHC.html
Sign: http://www.giguere.uqam.ca/petition/hcpetition.html

Reply via email to