ATEasy 2.x DLG Based Dialog Boxes Appear Narrower in ATEasy 3.0 than in ATEasy 2.x

Knowledge Base Article # Q200014

Read Prior Article Read Next Article
Summary Describes differences between ATEasy 3. 0 and ATEasy 2.x DLG based dialog boxes

This problem occurs because the Windows Dialog Base Unit (DBU) works differently in Win32 than in Win16.

DBUs are a Windows unit that let you specify control in a portable way that will allow different system to display text without clipping (to prevent the problem that cause fonts to be truncated).

Dialog Base Units (DBU) are used in DlgEasy and by Windows specify control size and position which are later on converted to pixels before being displayed by Windows.

Microsoft recommends to UI designers to add 30% width to controls that display text to prevent font clipping when changing system. If this rule is not followed, font truncating is not guaranteed. In addition, moving from WIN16 to WIN32 DBU translation to pixels was changed by Microsoft and made a bit narrower. However if the 30% rule was used than in most cases migrating dialog (in C or ATEasy) will work. Designing a dialog box in Visual C 1.5 and recompiling it to Visual C 6.0 may cause the same problem.

If font is truncated the only workaround is to resize the dialog controls in DlgEasy before using it from ATEasy 3.0.

Article Date 10/31/2002 4:45:54 PM
Keywords ATEasy, DLG

0 ratings | 0 out of 5
Read Prior Article Read Next Article