Changeset 585 for DpiControls/DpiControls.pas
- Timestamp:
- Jan 13, 2026, 4:12:03 PM (18 hours ago)
- File:
-
- 1 edited
-
DpiControls/DpiControls.pas (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
DpiControls/DpiControls.pas
r532 r585 1 { This file was automatically created by Lazarus. Do not edit!2 This source is only used to compile and install the package.3 }4 5 1 unit DpiControls; 6 2 7 {$warn 5023 off : no warning about unused units}8 3 interface 9 4 10 5 uses 11 UDpiControls, LazarusPackageIntf; 6 {$IFDEF WINDOWS}Windows, {$ENDIF}Classes, SysUtils, LCLProc, LResources, Forms, 7 Generics.Collections, FormEditingIntf, ProjectIntf, Controls, StdCtrls, Graphics, 8 ComCtrls, ExtCtrls, LCLType, GraphType, Types, CustApp, LMessages, LCLIntf, 9 Menus, Math, Dpi.PixelPointer, Grids, Spin, Dpi.Forms, Dpi.Controls, Dpi.Graphics; 10 11 type 12 13 { TDpiFormFileDesc } 14 15 TDpiFormFileDesc = class(TFileDescPascalUnitWithResource) 16 public 17 constructor Create; override; 18 function GetInterfaceUsesSection: string; override; 19 function GetLocalizedName: string; override; 20 function GetLocalizedDescription: string; override; 21 end; 22 23 var 24 DpiFormFileDesc: TDpiFormFileDesc; 25 26 procedure Register; 27 12 28 13 29 implementation 14 30 31 uses 32 LCLStrConsts, Dpi.Common; 33 34 resourcestring 35 SDpiFormTitle = 'DpiForm form'; 36 SDpiFormDescription = 'DPI aware form'; 37 15 38 procedure Register; 16 39 begin 17 RegisterUnit('UDpiControls', @UDpiControls.Register); 40 FormEditingHook.RegisterDesignerBaseClass(TForm); 41 DpiFormFileDesc := TDpiFormFileDesc.Create; 42 RegisterProjectFileDescriptor(DpiFormFileDesc); 43 end; 44 45 { TDpiFormFileDesc } 46 47 constructor TDpiFormFileDesc.Create; 48 begin 49 inherited Create; 50 Name := 'DpiForm form'; 51 ResourceClass := TForm; 52 UseCreateFormStatements := False; 53 end; 54 55 function TDpiFormFileDesc.GetInterfaceUsesSection: string; 56 begin 57 Result := inherited GetInterfaceUsesSection; 58 Result := Result + ', UDpiForm'; 59 end; 60 61 function TDpiFormFileDesc.GetLocalizedName: string; 62 begin 63 Result := SDpiFormTitle; 64 end; 65 66 function TDpiFormFileDesc.GetLocalizedDescription: string; 67 begin 68 Result := SDpiFormDescription; 18 69 end; 19 70 20 71 initialization 21 RegisterPackage('DpiControls', @Register); 72 73 22 74 end. 75
Note:
See TracChangeset
for help on using the changeset viewer.
