Author Topic: GUI coordinates  (Read 1663 times)

GUI coordinates
« on: November 29, 2014, 11:33:15 am »
How can I precisely obtain button/text coordinates for use in the ini file? Thanks in advance.

JovankaB

  • Guest
Re: GUI coordinates
« Reply #1 on: November 30, 2014, 09:38:00 am »
You create the interface in a graphics program and measure the coords there using available tools (rulers, rectangular selections etc). As far as I remember they are relative to top left corner of the parent element, I'm only not sure anymore if it's x1, y1, x2, y2 (coords of opposite corners) or x, y, width, height (coords of one corner + size). And yea, it's not particularly fun work. Maybe there is some easier way to do it but I don't know it.
« Last Edit: November 30, 2014, 09:45:20 am by JovankaB »

Re: GUI coordinates
« Reply #2 on: November 30, 2014, 01:43:46 pm »
Thanks for the help, been doing it like that but it's too much time consuming. Oh well.

Re: GUI coordinates
« Reply #3 on: December 01, 2014, 09:46:44 pm »
For reference, it is X1,Y1, X2,Y2 or TopLeft and BottemRight.