View Single Post
Old 10th July 2014, 22:02  
shadowpoa
Member
 
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...
http://blogs.msdn.com/b/oldnewthing/.../17/74811.aspx

and this:
https://groups.google.com/forum/#!to...32/fT3gXGbwISc

So, I adapted the sample code from here http://nsis.sourceforge.net/Get_text_dimensions 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:	449
Size:	97.6 KB
ID:	51280  
shadowpoa is offline   Reply With Quote