Changeset 303 for branches/highdpi/LocalPlayer/TechTree.pas
- Timestamp:
- Mar 9, 2021, 9:19:49 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/LocalPlayer/TechTree.pas
r246 r303 23 23 Shift: TShiftState; X, Y: Integer); 24 24 procedure FormMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer); 25 procedure FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);26 25 procedure CloseBtnClick(Sender: TObject); 27 26 private … … 133 132 NewHeight: Integer; 134 133 const 135 TransparentColor = $7F007F;134 TransparentColor: Cardinal = $7F007F; 136 135 begin 137 136 if Image = nil then begin 138 137 Image := TDpiBitmap.Create; 139 138 Image.PixelFormat := pf24bit; 140 LoadGraphicFile(Image, HomeDir + 'Help' + DirectorySeparator + 'AdvTree.png', gfNoGamma); 139 LoadGraphicFile(Image, HomeDir + 'Help' + DirectorySeparator + 'AdvTree.png', 140 [gfNoGamma]); 141 141 142 142 with Image.Canvas do begin … … 228 228 end; 229 229 230 procedure TTechTreeDlg.FormKeyDown(Sender: TObject; var Key: Word;231 Shift: TShiftState);232 begin233 if Key = VK_ESCAPE then234 Close;235 end;236 237 230 procedure TTechTreeDlg.CloseBtnClick(Sender: TObject); 238 231 begin
Note:
See TracChangeset
for help on using the changeset viewer.