Changeset 349 for branches/highdpi/Packages/CevoComponents/BaseWin.pas
- Timestamp:
- Apr 6, 2021, 8:11:02 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/Packages/CevoComponents/BaseWin.pas
r269 r349 87 87 end; 88 88 89 90 89 constructor TBufferedDrawDlg.Create(AOwner: TComponent); 91 90 begin … … 112 111 procedure TBufferedDrawDlg.FormClose(Sender: TObject; var Action: TCloseAction); 113 112 begin 114 if FWindowMode = wmPersistent then 115 begin 113 if FWindowMode = wmPersistent then begin 116 114 UserLeft := Left; 117 UserTop := Top 115 UserTop := Top; 118 116 end; 119 117 if OffscreenUser = self then … … 131 129 Shift: TShiftState); 132 130 begin 133 if Key = VK_ESCAPE then 134 begin 131 if Key = VK_ESCAPE then begin 135 132 if fsModal in FormState then 136 ModalResult := mrCancel 137 end 138 else if Key = VK_RETURN then 139 begin 133 ModalResult := mrCancel; 134 end else 135 if Key = VK_RETURN then begin 140 136 if fsModal in FormState then 141 ModalResult := mrOK 142 end 143 elseif Key = VK_F1 then begin137 ModalResult := mrOK; 138 end else 139 if Key = VK_F1 then begin 144 140 if Assigned(ShowNewContentProc) then 145 141 ShowNewContentProc(FWindowMode or wmPersistent, HelpContext); 146 end else if FWindowMode = wmPersistent then begin 142 end else 143 if FWindowMode = wmPersistent then begin 147 144 if Assigned(MainFormKeyDown) then 148 145 MainFormKeyDown(Sender, Key, Shift); … … 153 150 begin 154 151 if FWindowMode = wmSubmodal then 155 Close 152 Close; 156 153 end; 157 154 … … 316 313 else 317 314 MainTexture := MainTexture; 318 MainTexture := MainTexture 315 MainTexture := MainTexture; 319 316 end; 320 317 Canvas.Font.Assign(UniFont[ftCaption]); … … 330 327 begin 331 328 FrameTop := 0; 332 FrameBottom := ClientHeight 329 FrameBottom := ClientHeight; 333 330 end 334 331 else … … 338 335 FrameBottom := ClientHeight - (WideFrame - NarrowFrame) 339 336 else 340 FrameBottom := ClientHeight 337 FrameBottom := ClientHeight; 341 338 end; 342 339 Fill(Canvas, 3, InnerBottom + 1, ClientWidth - 6, ClientHeight - InnerBottom - … … 386 383 MoveTo(ClientWidth - 3 - ModalFrameIndent, 3); 387 384 LineTo(ClientWidth - 3 - ModalFrameIndent, TitleHeight); 388 end 385 end; 389 386 end 390 387 else … … 441 438 LineTo(ClientWidth - CaptionLeft - 2, FrameBottom - 2); 442 439 end; 443 end 440 end; 444 441 end; 445 442 RisedTextOut(Canvas, Cut - 1, 7, Caption); … … 496 493 begin 497 494 if Offscreen <> nil then 498 Exit;495 exit; 499 496 Offscreen := TDpiBitmap.Create; 500 497 Offscreen.PixelFormat := pf24bit;
Note:
See TracChangeset
for help on using the changeset viewer.