Position Units

Developer
Jan 11, 2011 at 9:40 PM

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

Coordinator
Jan 11, 2011 at 10:27 PM

Pixels/points.

Developer
Jan 12, 2011 at 5: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.

Coordinator
Jan 12, 2011 at 8:41 PM

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

Developer
Jan 12, 2011 at 8:47 PM

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

Developer
Jan 21, 2011 at 6: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.

Coordinator
Jan 23, 2011 at 7: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? :)