Changeset 147 for trunk/Packages/Common/UScaleDPI.pas
- Timestamp:
- Aug 31, 2022, 9:03:29 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/UScaleDPI.pas
r128 r147 30 30 end; 31 31 32 TOnScaleControl = procedure (Control: TControl) of object; 33 32 34 { TScaleDPI } 33 35 … … 37 39 FDesignDPI: TPoint; 38 40 FDPI: TPoint; 41 FOnScaleControl: TOnScaleControl; 42 FOnScaleControls: TOnScaleControl; 39 43 procedure SetAutoDetect(AValue: Boolean); 40 44 procedure SetDesignDPI(AValue: TPoint); … … 56 60 published 57 61 property AutoDetect: Boolean read FAutoDetect write SetAutoDetect; 62 property OnScaleControl: TOnScaleControl read FOnScaleControls 63 write FOnScaleControl; 58 64 end; 59 65 … … 370 376 end; 371 377 378 if Assigned(FOnScaleControl) then 379 FOnScaleControl(Control); 380 372 381 //if Control is TForm then 373 382 // Control.EnableAutoSizing;
Note:
See TracChangeset
for help on using the changeset viewer.