Image Mouse events

Discussion in 'Basic4ppc Wishlist' started by LineCutter, May 18, 2007.

  1. LineCutter

    LineCutter Active Member Licensed User

    I may well have missed something here, but I'd like to be able to trap mouse/stylus events within an image, rather than having to display the graphics on the form.

    e.g. Image_mouseUp(x,y) instead of Form1_MouseUp(x,y)
  2. RandomCoder

    RandomCoder Well-Known Member Licensed User

    I had a similar problem to this but as a work around I drew the image on the ForeLayer of the form, then caught the colour of the Forelayer that was not occupied by the image. Each time the MouseDown event was triggered I use the FGetPixel command to test the colour at that point and if it is different to the colour of the ForeLayer then I know that the image has been clicked :cool:

    Hope this little work around helps.

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice