Hi all,
I'm trying to get the absolute coordinates of a view (that is, relative to the activity, not the view's parent object).
There's a Java method called getLocationOnScreen that does this, but I'm not sure how to call it from B4A. Mainly I'm having trouble with the parameter it wants (an array of 2 integers).
Anyone have a code snippet handy?
Thanks!
I'm trying to get the absolute coordinates of a view (that is, relative to the activity, not the view's parent object).
There's a Java method called getLocationOnScreen that does this, but I'm not sure how to call it from B4A. Mainly I'm having trouble with the parameter it wants (an array of 2 integers).
Anyone have a code snippet handy?
Thanks!