Forum > Android
FindControlPositionRelativeToTheForm
(1/1)
meanderix:
Hi,
When mouse events are triggered on the form, the coordinates are not relative to the form.
If I have form.left = 100 and form.top = 100, I will get the coordinate (-100, -100) instead of (0, 0) in OnMouseDown. Seems the problem is due to the FindControlPositionRelativeToTheForm() routine.
Edit: I just realized that I'm not actually showing the form -- maybe it should be translated by (left, top) even on an Android phone and then this might be correct.
Navigation
[0] Message Index