Changeset 533 for DpiControls/Demo/UFormMain.pas
- Timestamp:
- May 26, 2019, 7:33:14 PM (5 years ago)
- Location:
- DpiControls
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
DpiControls
-
Property svn:ignore
set to
lib
-
Property svn:ignore
set to
-
DpiControls/Demo
-
Property svn:ignore
set to
DpiComponentsDemo
DpiComponentsDemo.lps
DpiComponentsDemo.res
lib
-
Property svn:ignore
set to
-
DpiControls/Demo/UFormMain.pas
r532 r533 6 6 7 7 uses 8 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ComCtrls, UDpiForm,9 UDpiControls;8 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ComCtrls, StdCtrls, 9 ExtCtrls, UDpiForm, UDpiControls; 10 10 11 11 type 12 12 13 { TForm 1}13 { TFormMain } 14 14 15 TForm1 = class(TForm) 15 TFormMain = class(TForm) 16 Label1: TLabel; 16 17 TrackBar1: TTrackBar; 17 18 procedure FormShow(Sender: TObject); … … 24 25 25 26 var 26 Form 1: TForm1;27 FormMain: TFormMain; 27 28 28 29 implementation … … 30 31 {$R *.lfm} 31 32 32 { TForm 1}33 { TFormMain } 33 34 34 procedure TForm 1.FormShow(Sender: TObject);35 procedure TFormMain.FormShow(Sender: TObject); 35 36 begin 36 37 DpiScreen.Dpi := 96 * 2; … … 45 46 end; 46 47 47 procedure TForm 1.TrackBar1Change(Sender: TObject);48 procedure TFormMain.TrackBar1Change(Sender: TObject); 48 49 begin 49 50 DpiScreen.Dpi := TrackBar1.Position;
Note:
See TracChangeset
for help on using the changeset viewer.