Autor Beitrag
saxe66
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 104



BeitragVerfasst: Sa 05.07.03 16:00 
Gibt es eine Komponente die automatisch dafür sorgt, dass bei Änderung der Bildschirmauflösung alle Komponenten eines Forms vergrößert bzw. verkleinert ?
Beispiel : Das Programm wurde eigentlich für eine Auflösung von 800*600 programmiert und soll beim Aufziehen auf 1024*768 alle Komponenten entsprechend vergrößern.

Vielen Dank im Voraus ...
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 05.07.03 17:14 
Aus der Delphi Hilfe:
Zitat:

Scaled (Eigenschaft von TForm):
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.

Damit sollte sich was machen lassen.