Hello,
I have a button positioned on a panel which is positioned within the activity. I would like to find the coordinates of the upper left corner of the button relative to the activity coordinates.
The coordinates of the button are relative to the panel and the position of the panel is relative to the activity.
Sure, it's easy just to add tops and lefts, but is there a better way to translate coordinates?
Thanks,
Barry.
I have a button positioned on a panel which is positioned within the activity. I would like to find the coordinates of the upper left corner of the button relative to the activity coordinates.
The coordinates of the button are relative to the panel and the position of the panel is relative to the activity.
Sure, it's easy just to add tops and lefts, but is there a better way to translate coordinates?
Thanks,
Barry.