Tools for Cross Platform Development
Mon, 07/10/2017 - 03:10 pm
I am working on a cross platform project that has a fairly involved GUI. Due to the nature of the display differences I need to enter position and size corrections to the control objects in window macro. To do the is I have some code in the window macro that reads the screen resolution and compares it to the 72 dpi default on the Mac. I then multiply the ratio in the position and size fields.
Variable PC = ScreenResolution/72 // correct for screen resolution
When I tweak the layout with the tools and add new elements, I run into a bit of problem/issue, when I update the window macro it inserts the current values with just the number removing the correction term "*PC".
I then have to go back and modify all the fields again.
Is there an easier/automatic way to do this?
Can we add this to the wish list?