Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Bug in modal dialogs in 2.92 win7 Collapse All
Subject Author Date
Offer Har Sep 8, 2011 - 1:50 AM

Still waiting for some answers....


 

Technical Support Sep 17, 2011 - 6:03 AM

Please download the following image created with Prof-UIS 2.92:
http://www.prof-uis.com/download/forums/tmp/NcDistanceToBorders.png
The left column contains dialog template resource editors in Visual Studio. The right column contains the same dialogs in a running app. Different Prof-UIS and Windows desktop themes provide different border and caption sizes. But the distances of controls to dialog borders are the same because of anchoring. We suspect this is the source of the problem. Prof-UIS loads a dialog of the same size independently of UI theme settings and expects the dialog controls to be anchored. Probably your dialog controls are not anchored and this causes some space in pixels near right and bottom borders.

Offer Har Sep 17, 2011 - 10:41 PM

You are wrong. This is not the problem.


I already sent you a sample showing the problem of these extra 10 pixels. Please read back all our mails on this topic, and you will find an application I sent you that reproduces this bug. Then, you said that you ’solved’ it by changing my code. I then told you that it did nothing to the application...


So, please, try and fix it, and not insist that it’s fine.


To sum it up:


1. in 2.90 when I placed a button toching the right side of the dialog, and anchored it, it appeared in the UI touching the right order.


2. In 2.92 when I placed a button toching the right side of the dialog, and anchored it, it appears 10 pixels left of the border.


Same behavior happens on the bottom border.


Now, we need every pixel in the dialog, not to talk about all dialogs are not symmetric anymore.


Please explain how to get the same behavior of 2.90 in 2.92.

Technical Support Sep 13, 2011 - 1:02 PM

If your dialog problem has some incorrect size, this problem is related to dialog template loading rather than to custom non-client area computations. Have you specified some custom font in the dialog template properties?

Technical Support Sep 12, 2011 - 1:37 PM

Please take a look at the following image we created for you:



You can open it in MSPAINT.EXE, set maximal zoom and turn on grid lines using Ctrl+G keys and take a look at red lines. This image shows equal non-client area borders. If some border in some UI theme is greater/smaller that it’s in other, then the same can be seen in the opposite border.

Offer Har Sep 13, 2011 - 9:51 PM

Dear Support,


Please explain how to get rid of these 10 extra pixels on the edges - they were not there in 2.90, and we don’t want them.


Thanks.


 

Offer Har Sep 12, 2011 - 1:45 PM

Dear Support,

You are showing exactly the problem... but with a twist...

In 2.90 these 10 pixels were not there - we don’t want them.

However, we get them only on the right & bottom and not on the top & left, as we demonstrated in the sample application we sent you already.

Please explain how to get rid of these extra pixels altogether.

Regards,

Ron.