View Single Post
Old 10th July 2014, 22:02  
Join Date: Jun 2011
Posts: 52
Talking Control Positioning problem

Hi, me again...

Just for start, I´d like to say that this is the best editor for NSDialogs available.

So lets to the problem.

I´ve playing with some dialogs, and have noticed that after set size to 1044 and placed some controls, hitting test compiling and then the compiled dialog pops, they're different!!

So, I done some testing, and saw that this behavior occurs when using DLU to size and place controls (default) .

I got some time reading... and found this link...

and this:!to...32/fT3gXGbwISc

So, I adapted the sample code from here to convert pixels units to dlu and voilá, the size and positions are equal.

Hope you can fix it, if more tests needed please ask.
Attached Thumbnails
Click image for larger version

Name:	screen_coolsoft.gif
Views:	1141
Size:	97.6 KB
ID:	51280  
shadowpoa is offline   Reply With Quote