File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4916,14 +4916,21 @@ procedure TMainForm.actSQLhelpExecute(Sender: TObject);
49164916
49174917
49184918procedure TMainForm.actSynEditCompletionProposeExecute(Sender: TObject);
4919+ var
4920+ P: TPoint;
4921+ Memo: TCustomSynEdit;
49194922begin
49204923 // Show completion proposal explicitely, without the use of its own ShortCut property,
49214924 // to support a customized shortcut, see
4922- {SynCompletionProposal.Editor := ActiveSynMemo(False);
4923- if Screen.ActiveControl is TCustomSynEdit then
4924- SynCompletionProposal.ActivateCompletion
4925+ if Screen.ActiveControl is TCustomSynEdit then begin
4926+ Memo := ActiveSynMemo(False);
4927+ SynCompletionProposal.Editor := Memo;
4928+ P := Memo.RowColumnToPixels(Memo.CaretXY);
4929+ P := Memo.ClientToScreen(Point(P.X, P.Y + Memo.LineHeight));
4930+ SynCompletionProposal.Execute(SynCompletionProposal.CurrentString, P.X, P.Y);
4931+ end
49254932 else
4926- MessageBeep(MB_ICONEXCLAMATION);}
4933+ Beep;
49274934end;
49284935
49294936procedure TMainForm.actSynMoveDownExecute(Sender: TObject);
You can’t perform that action at this time.
0 commit comments