MainForm - jak zablokować skalowanie

0

Czy da się i jak zablokować całą formę (interfejs programu) żeby nie dało się skalować przez Windows.
Tj niezależnie od rozmiaru wybranej czcionki żeby zostało takie samo.

to samo z Tspanel - nie ma property "Scaled: true/false"

0

Nie bardzo wiem o co dokładnie chodzi z tym "skalowaniem"; Wrzuć może zrzut ekranu z popsutym oknem a wtedy będzie można naipsać coś więcej.

1

to już nawet nie jest lenistwo tylko głupota

Delphi7 HELP napisał(a)

Scaled property (TCustomForm)
Specifies whether the form is sized according to the value of the PixelsPerInch property.

Delphi syntax:

property Scaled: Boolean;

C++ syntax:

__property bool Scaled = {read=GetScaled, write=SetScaled, stored=IsForm, default=1};

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.

Delphi XE3 HELP napisał(a)

Vcl.Forms.TCustomForm.Scaled
Up to Parent: TCustomForm

Delphi
property Scaled: Boolean read GetScaled write SetScaled stored IsForm default True;

C++
__property bool Scaled = {read=GetScaled, write=SetScaled, stored=IsForm, default=1};
PropertiesType Visibility Source Unit Parent
property protected Vcl.Forms.pas
Vcl.Forms.hpp Vcl.Forms TCustomForm

Description

Specifies whether the form is sized according to the value of the PixelsPerInch property.

Scaled determines whether the form adjusts 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.

i jeszcze pierwszy link z googla po wpisaniu delphi scaled http://delphi.about.com/od/standards/a/aa030700a.htm

No ale do takich czynności to trzeba posiadać TBrain

1 użytkowników online, w tym zalogowanych: 0, gości: 1