Changeset 340 for trunk/Packages/CevoComponents/BaseWin.pas
- Timestamp:
- Apr 2, 2021, 9:09:49 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CevoComponents/BaseWin.pas
r317 r340 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);
Note:
See TracChangeset
for help on using the changeset viewer.