Ignore:
Timestamp:
Apr 6, 2021, 8:11:02 PM (3 years ago)
Author:
chronos
Message:
  • Modified: Merged trunk branch version r348 into highdpi branch.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/highdpi/Packages/CevoComponents/BaseWin.pas

    r269 r349  
    8787end;
    8888
    89 
    9089constructor TBufferedDrawDlg.Create(AOwner: TComponent);
    9190begin
     
    112111procedure TBufferedDrawDlg.FormClose(Sender: TObject; var Action: TCloseAction);
    113112begin
    114   if FWindowMode = wmPersistent then
    115   begin
     113  if FWindowMode = wmPersistent then begin
    116114    UserLeft := Left;
    117     UserTop := Top
     115    UserTop := Top;
    118116  end;
    119117  if OffscreenUser = self then
     
    131129  Shift: TShiftState);
    132130begin
    133   if Key = VK_ESCAPE then
    134   begin
     131  if Key = VK_ESCAPE then begin
    135132    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
    140136    if fsModal in FormState then
    141       ModalResult := mrOK
    142   end
    143   else if Key = VK_F1 then begin
     137      ModalResult := mrOK;
     138  end else
     139  if Key = VK_F1 then begin
    144140    if Assigned(ShowNewContentProc) then
    145141      ShowNewContentProc(FWindowMode or wmPersistent, HelpContext);
    146   end else if FWindowMode = wmPersistent then begin
     142  end else
     143  if FWindowMode = wmPersistent then begin
    147144    if Assigned(MainFormKeyDown) then
    148145      MainFormKeyDown(Sender, Key, Shift);
     
    153150begin
    154151  if FWindowMode = wmSubmodal then
    155     Close
     152    Close;
    156153end;
    157154
     
    316313    else
    317314      MainTexture := MainTexture;
    318     MainTexture := MainTexture
     315    MainTexture := MainTexture;
    319316  end;
    320317  Canvas.Font.Assign(UniFont[ftCaption]);
     
    330327  begin
    331328    FrameTop := 0;
    332     FrameBottom := ClientHeight
     329    FrameBottom := ClientHeight;
    333330  end
    334331  else
     
    338335      FrameBottom := ClientHeight - (WideFrame - NarrowFrame)
    339336    else
    340       FrameBottom := ClientHeight
     337      FrameBottom := ClientHeight;
    341338  end;
    342339  Fill(Canvas, 3, InnerBottom + 1, ClientWidth - 6, ClientHeight - InnerBottom -
     
    386383        MoveTo(ClientWidth - 3 - ModalFrameIndent, 3);
    387384        LineTo(ClientWidth - 3 - ModalFrameIndent, TitleHeight);
    388       end
     385      end;
    389386  end
    390387  else
     
    441438        LineTo(ClientWidth - CaptionLeft - 2, FrameBottom - 2);
    442439      end;
    443     end
     440    end;
    444441  end;
    445442  RisedTextOut(Canvas, Cut - 1, 7, Caption);
     
    496493begin
    497494  if Offscreen <> nil then
    498     Exit;
     495    exit;
    499496  Offscreen := TDpiBitmap.Create;
    500497  Offscreen.PixelFormat := pf24bit;
Note: See TracChangeset for help on using the changeset viewer.