Forum Discussion
tristaanogre
14 years agoEsteemed Contributor
Co-ordinates are pixels. As for the Janus grid reference, it's at the very bottom of that article.
As for getting the currently focused sell, I know that many grids have some sort of property or method that returns "FocusedCell". That might be able to get you want you want as well.
As for relationship between position and co-ordinates, co-ordinates for "click" are always relative to the object being clicked in number of pixels from the top and left of the object. so, if you have an object that is 120 pixels by 80 pixels, Click(60, 40) will click roughly in the center. So, the position of the object on screen doesn't affect the "click" co-ordinates, only the size in pixels.
As for getting the currently focused sell, I know that many grids have some sort of property or method that returns "FocusedCell". That might be able to get you want you want as well.
As for relationship between position and co-ordinates, co-ordinates for "click" are always relative to the object being clicked in number of pixels from the top and left of the object. so, if you have an object that is 120 pixels by 80 pixels, Click(60, 40) will click roughly in the center. So, the position of the object on screen doesn't affect the "click" co-ordinates, only the size in pixels.
Related Content
- 4 years ago
- 12 years ago
- 3 years ago
- 6 years ago