Match Control Sizes to Font Sizes - Greg Collins
in

InfoPath Dev

This Blog

Syndication

Greg Collins

Match Control Sizes to Font Sizes

While developing forms in InfoPath, it is likely that you will one day need a label for a check box or an option button that uses a font size other than the default 10pt. Using a different font size will make the control simply not look right next to the label. Luckily these controls are resizable (this is true for both V1 and SP1).

Using a larger font size is fairly straight forward: it's just a matter of finding the correct control size. But using a smaller font size can start shifting the control around and out of place. This is easily corrected by adjusting the margins on the control.

You can see these techniques demonstrated in my example form: Rightsizing Check Boxes and Option Buttons. Also, the following table lists good control sizes for the InfoPath's standard font sizes.

Font Size

Control Size

Margins (T, L, B, R)

8pt

10px

0px, 4px, 3px, 2px

10pt

20px

n/a

12pt

22px

n/a

14pt

24px

n/a

18pt

30px

n/a

24pt

36px

n/a

36pt

48px

n/a

 

©2004 Greg Collins. All rights reserved. Licensed to Autonomy Systems, LLC for display on InfoPathDev.com.

Comments

No Comments
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.