Can a button report its position

I've been trying around and not found any good way to do this. Is it
possible to get a button to report the coordinates of (for example)
it's bottom left corner when clicked? I know I can get the mouse
position when the button is clicked but that's not really what I need.

Dag

btn.GetPos() will get the position of the upper-left corner in relation
to its parent's upper-left corner.

- Josiah

ยทยทยท

"Dag Wastberg" <dwastberg@gmail.com> wrote:

I've been trying around and not found any good way to do this. Is it
possible to get a button to report the coordinates of (for example)
it's bottom left corner when clicked? I know I can get the mouse
position when the button is clicked but that's not really what I need.