Changeset 148 for trunk/Packages/Common/ScaleDPI.pas
- Timestamp:
- Jun 5, 2023, 7:40:45 PM (18 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/ScaleDPI.pas
r147 r148 1 unit UScaleDPI;1 unit ScaleDPI; 2 2 3 3 { See: http://wiki.lazarus.freepascal.org/High_DPI } … … 30 30 end; 31 31 32 TOnScaleControl = procedure (Control: TControl) of object;33 34 32 { TScaleDPI } 35 33 … … 39 37 FDesignDPI: TPoint; 40 38 FDPI: TPoint; 41 FOnScaleControl: TOnScaleControl;42 FOnScaleControls: TOnScaleControl;43 39 procedure SetAutoDetect(AValue: Boolean); 44 40 procedure SetDesignDPI(AValue: TPoint); … … 60 56 published 61 57 property AutoDetect: Boolean read FAutoDetect write SetAutoDetect; 62 property OnScaleControl: TOnScaleControl read FOnScaleControls63 write FOnScaleControl;64 58 end; 65 59 … … 376 370 end; 377 371 378 if Assigned(FOnScaleControl) then379 FOnScaleControl(Control);380 381 372 //if Control is TForm then 382 373 // Control.EnableAutoSizing;
Note:
See TracChangeset
for help on using the changeset viewer.