Generally if you mouse down on a button to highlight it and then move the mouse out of the button area but still pressed down the highlight is lost. If you then move the mouse back into the area of the button with the mouse still down the highlight returns.
I am trying to emulate this action using the events of a canvas, how would I achieve this?
I have my mouseDown code working and can change the state(colour) of the canvas using mouseExit but how do I detect the mouse returning over the canvas.
I have tried mouseEnter but this does not seem to fire with the mouseDown at the same time.
Also, I have read that all drawing etc in a canvas should be implemented in the paint event, I presume therefore that it is necessary to implement a flag arrangement to identify other events that may affect the painting of the canvas and then refresh to call the paint event?
All the best
Terry