Hi Tom,

   > If CustomerFlag = True
   >   then  EmailViewerFrm.Width := 864
   >   else  EmailViewerFrm.Width := 700;

It's much better to set the ClientWidth. Different versions of Windows
have different border widths, and in some themes the border width is
adjustable by the user. Likewise the height of the top caption bar can
vary a lot.

I always set the ClientWidth and ClientHeight to the design-time
values in the OnCreate event of a form. It always works fine, and
makes sure everything fits as intended.

regards,

Martin.

Reply via email to