|
Post by CarbonMan on May 27, 2005 16:57:50 GMT -5
I'm having problems compensating for the difference between small (96 dpi) and large (120 dpi) fonts under the advanced settings in Windows' Display Properties. My form size, the placement of labels and buttons, and the size of the fonts are not consistent between small and large. The differences are huge and the results can be quite ugly.
Is there some way of eliminating the effect of large fonts? (in other words, can I force my project to disregard the small/large font setting in Windows?)
|
|
|
Post by Murariu Alexandru on May 29, 2005 12:42:22 GMT -5
Controls sizes and text sizes will auto-adjust according to the windows settings. You cannot disregard the small/large font setting in Windows.
You could replace labels (TLabel) with images (TImage) and buttons (TButton) with image buttons (TImgBtn). This way it does not mater what are the windows font settings, because the user sees images representing text with any font size you want (but be careful because the image size will change).
|
|
|
Post by Murariu Alexandru on Jun 22, 2005 11:42:49 GMT -5
I just realized that what I have said to you is partially wrong. Set the Scaled property of the form to False (at design time, in object inspector) and you're solved (the controls won't be resized). Read Bellow. Quote from Delphi Help: "Specifies whether the form is sized according to the value of the PixelsPerInch property. property Scaled: Boolean; Description Scaled determines whether the form adjust itself to differences between the font used at design time and the current system font used by a system at runtime. If Scaled is True, the form resizes itself and all its child controls to maintain the relationship between the size of controls and the height of text displayed in the default font. If Scaled is False, no such resizing occurs. By setting Scaled to True, the form can adjust to fonts that are not scalable (that is, fonts that only supply discrete point sizes) or to differences such as forms designed using small fonts at design time that are run on systems that use large fonts. The degree of resizing is determined by the PixelsPerInch property, which measures the proportion of the font on the system used when designing the form." Take care what font you use (MS Serif and MS Sans Serif not recomended)
|
|