Whether it is possible to make, that pressing and holding Ctrl work in a RichView?Sergey Tkachenko wrote:In a read-only editor, hypertext works automatically, without Ctrl. Only when editing, it requires pressing and holding Ctrl.
URL with Ctrl in RichView
URL with Ctrl in RichView
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
It is necessary for me, that in TRichView hypertext works only with Ctrl and don't work without CtrlSergey Tkachenko wrote:I do not completely understand your question.
In TRichView and read-only TRichViewEdit, hypertext always work, even without pressing Ctrl.
In editable TRichViewEdit, hypertext works with Ctrl (if rvoCtrlJumps in EditorOptions).
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Sorry, there are no ways to disable hypertext in TRichView.
You can only prevent executing any link if Ctrl is not pressed.
In OnJump event:
You can only prevent executing any link if Ctrl is not pressed.
In OnJump event:
Code: Select all
procedure TForm1.RichView1Jump(Sender: TObject; id: Integer);
var KeyboardState: TKeyboardState;
begin
GetKeyboardState(KeyboardState);
if KeyboardState[VK_CONTROL] and $80 = 0 then
exit;
<process hyperlink click here>
end;
Last edited by Sergey Tkachenko on Wed Jul 28, 2010 1:10 pm, edited 1 time in total.