Is mouse over canvas???

BlitzPlus Forums/BlitzPlus Programming/Is mouse over canvas???

If EventID()=$201 ; mouse move over a canvas ?
  If EventSource()=MyCanvas  ; which canvas ?
    Notify "yay!"
    
    ; top-left ?
    If EventX()>0 and EventX()<24 and EventY()>0 and EventY()<23
      Notify "YAY!!"
    EndIf


  EndIf
EndIf