Get Value X,Y when mouseUp Event of canvas active

Hello
I’m use canvas control for draw rectangle on canvas control

I want to get value X,Y when mouseUp Event of canvas control is active

how to write code ?

Look at the example canvasdragrect in the graphics and multimedia folder of the example projects that came with Xojo.