Please enable JavaScript to view this site.

A-Shell Reference

Navigation: Subroutines > INFLD > INFLD Parameters > type > GUI-Related Codes

Force Modified Fixed-Pitch Font

Scroll Prev Top Next More

||F, like ||f (Force Fixed-Pitch Font), forces INFLD to use a fixed-pitch font. However, unlike ||f, which uses the standard A-Shell text-mode font (based on the main window grid), ||F selects a custom fixed-pitch font based on the actual field size (as rendered into pixels based on the resolution, grid units, scale adjustments, etc) to allow the specified maximum number of characters (according to xmax) to fit in the field. ||F is generally more suitable than ||f within dialogs, particularly those based on the MBF_ALTPOS (see AUI ctype) grid, since in that environment the grid units have no particular relationship to the main window grid units, and thus the main window text font may be too big or too small for the edit control. ||F is also compatible with ||]. The main downside to ||F versus ||f is that depending on the currently selected fixed pitch font type, the screen resolution, and limitations on the granularity of font scaling, the actual font selected at runtime may sometimes appear smaller than "ideal" (meaning that it may give the appearance that the field could accept more characters than the actual limit as set by the xmax parameter). Although this does somewhat undermine one of the objectives in using a fixed pitch font, the discrepancy is generally small, and certainly much smaller than the discrepancy that occurs with the standard proportional edit font, where the typist may hit the xmax or maxchrs limit long before filling the physical width of the control.