Changeset 210 for branches/highdpi/Packages/CevoComponents/BaseWin.pas
- Timestamp:
- May 9, 2020, 4:02:07 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/Packages/CevoComponents/BaseWin.pas
r193 r210 4 4 5 5 uses 6 ScreenTools, LCLIntf, LCLType, SysUtils, Classes, Graphics, Controls, Forms,7 DrawDlg , UDpiControls;6 UDpiControls, ScreenTools, LCLIntf, LCLType, SysUtils, Classes, Graphics, Controls, Forms, 7 DrawDlg; 8 8 9 9 type … … 100 100 TitleHeight := WideFrame; 101 101 ModalFrameIndent := 45; 102 UserLeft := ( Screen.Width - Width) div 2;103 UserTop := ( Screen.Height - Height) div 2;102 UserLeft := (DpiScreen.Width - Width) div 2; 103 UserTop := (DpiScreen.Height - Height) div 2; 104 104 end; 105 105 … … 165 165 procedure TBufferedDrawDlg.VPaint; 166 166 begin 167 DpiBitBlt(Canvas.Handle, 0, 0, ClientWidth, ClientHeight, 168 Offscreen.Canvas.Handle, 0, 0, SRCCOPY); 167 DpiBitCanvas(Canvas, 0, 0, ClientWidth, ClientHeight, Offscreen.Canvas, 0, 0); 169 168 end; 170 169 … … 238 237 SaveOnShow, SaveOnPaint: TNotifyEvent; 239 238 begin 240 Top := Screen.Height;239 Top := DpiScreen.Height; 241 240 SaveOnShow := OnShow; 242 241 OnShow := nil; … … 454 453 end; 455 454 456 DpiBit Blt(Canvas.Handle, SideFrame, TitleHeight, ClientWidth - 2 * SideFrame,457 InnerBottom - TitleHeight, Offscreen.Canvas .Handle, 0, 0, SRCCOPY);455 DpiBitCanvas(Canvas, SideFrame, TitleHeight, ClientWidth - 2 * SideFrame, 456 InnerBottom - TitleHeight, Offscreen.Canvas, 0, 0); 458 457 end; 459 458
Note:
See TracChangeset
for help on using the changeset viewer.