Changeset 585 for DpiControls/Demo/UFormMain.pas
- Timestamp:
- Jan 13, 2026, 4:12:03 PM (18 hours ago)
- Location:
- DpiControls/Demo
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
UFormMain.pas (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
DpiControls/Demo
- Property svn:ignore
-
old new 3 3 DpiComponentsDemo.res 4 4 lib 5 heaptrclog.trc
-
- Property svn:ignore
-
DpiControls/Demo/UFormMain.pas
r537 r585 7 7 uses 8 8 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ComCtrls, StdCtrls, 9 ExtCtrls, UDpiControls, UDpiFormMain;9 ExtCtrls, Dpi.Controls, Dpi.Forms, UDpiFormMain; 10 10 11 11 type … … 19 19 TrackBar1: TTrackBar; 20 20 procedure ButtonNewDpiFormClick(Sender: TObject); 21 procedure FormActivate(Sender: TObject); 21 22 procedure FormDestroy(Sender: TObject); 22 23 procedure FormShow(Sender: TObject); … … 24 25 procedure TrackBar1Change(Sender: TObject); 25 26 private 27 Initialized: Boolean; 26 28 DpiForm: TDpiForm; 27 29 public … … 42 44 DpiScreen.Dpi := 96 * 2; 43 45 TrackBar1.Position := DpiScreen.Dpi; 44 ButtonNewDpiFormClick(nil);45 46 end; 46 47 … … 53 54 procedure TFormMain.ButtonNewDpiFormClick(Sender: TObject); 54 55 begin 55 DpiForm := TDpiFormMain.Create(nil); 56 DpiApplication.CreateForm(TDpiFormMain, DpiForm); 57 //DpiForm := TDpiFormMain.Create(Self); 56 58 DpiForm.Caption := DpiForm.Name; 57 59 DpiForm.SetBounds(100, 100, 400, 200); 58 60 DpiForm.Show; 59 DpiScreen.Forms.Add(DpiForm); 61 end; 62 63 procedure TFormMain.FormActivate(Sender: TObject); 64 begin 65 if not Initialized then begin 66 Initialized := True; 67 ButtonNewDpiFormClick(nil); 68 end; 60 69 end; 61 70
Note:
See TracChangeset
for help on using the changeset viewer.
