I find this feature in Visual Studio .NET very useful. You
can hold CTRL and then click on a word and it is
selected. This makes copy/paste'ing much faster :)
I would like to see this feature in SynEdit as well.
Thanks!
In latest CVS it's the simple matter of handling OnClick with the following code:
procedure TForm1.SynEdit1Click(Sender: TObject);
var
v_WordPos: TBufferCoord;
begin
if (GetKeyState(VK_LCONTROL) < 0)
and SynEdit1.GetPositionOfMouse(v_WordPos) then
begin
SynEdit1.SetWordBlock(v_WordPos);
end;
end;
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=99702
I don't if this suggestion you "catch on" since it's so
simple to implement it outside the editor...
Logged In: YES
user_id=99702
Originator: NO
In latest CVS it's the simple matter of handling OnClick with the following code:
procedure TForm1.SynEdit1Click(Sender: TObject);
var
v_WordPos: TBufferCoord;
begin
if (GetKeyState(VK_LCONTROL) < 0)
and SynEdit1.GetPositionOfMouse(v_WordPos) then
begin
SynEdit1.SetWordBlock(v_WordPos);
end;
end;
Logged In: YES
user_id=936015
Originator: YES
Thanks for the code snipple! It's probably enough to add this to a FAQ and close this issue, as it seems to be pretty simple to implement (now).