Recent

Author Topic: FindControlPositionRelativeToTheForm  (Read 1483 times)

meanderix

  • Jr. Member
  • **
  • Posts: 50
FindControlPositionRelativeToTheForm
« on: June 25, 2012, 04:40:56 pm »
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.
« Last Edit: June 25, 2012, 04:46:59 pm by meanderix »