Position Units

Jan 11, 2011 at 10:40 PM

Could someone let me know what units the position settings use (e.g. dialog_position, dialog_install_button_position)?

Jan 11, 2011 at 11:27 PM

Pixels/points.

Jan 12, 2011 at 6:44 AM

I thought it was pixels but the buttons are 50x16 in the rc file which I think is pixels but if I step through the code they are 75x26 - I guess that is points but the ratio doesn't seem correct.

Jan 12, 2011 at 9:41 PM

For rectangles it's left, top, width and height. Does this help?

Jan 12, 2011 at 9:47 PM

Not really, the sizes I quoted are just the width and height of a button.

Jan 21, 2011 at 7:49 AM

Has anyone got any experience with setting the position units, I can't seem to find any logical values to use and just end up using trial and error.

Jan 23, 2011 at 8:32 PM

I am sort of guessing, but I would say that this is the effect of client coordinate conversion to device coordinates (read this). Write a dialog editor instead of placing these manually? :)