I have multiple canvases on the screen and I want to have each one activate while the mouse is over it to be sure to catch all clicks. The MouseMove event $203 holds the the handle of the canvas the mouse is currently over. My code below doesnt write to debug so I know the case statements arent right. What handle does it need?
Canvas1 = CreateCanvas(0, 0, 320, 240, Parent)
hWnd_Canvas1 = QueryObject(Canvas1, 1) ; Get hWnd
Select WaitEvent()
Case $203 ; Mouse Move
Select EventSource() ; Canvas Handle
Case hWnd_Canvas1
Debuglog "Canvas1"
End Select
End Select
|