#78 Wordselect with single click

open
nobody
None
5
2007-01-23
2005-06-14
Peter
No

Hi,

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!

Discussion

  • Flávio Etrusco

    Flávio Etrusco - 2005-10-18

    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...

     
  • Flávio Etrusco

    Flávio Etrusco - 2007-01-23

    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;

     
  • Flávio Etrusco

    Flávio Etrusco - 2007-01-23
    • status: open --> pending
     
  • Peter

    Peter - 2007-01-23

    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).

     
  • Peter

    Peter - 2007-01-23
    • status: pending --> open
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks