ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How to detect Enter/Return Key in Memo

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
yogiyang Posted - Jul 07 2016 : 04:26:36
Hello,

I am using following to allow user to Add Memo annotation to ImageEnVect.
ImageEnVect1.MouseInteractVt:=[miPutMemo];

Now I want to detect as to which Enter the user has pressed while editing text.

What I want to do is if the user pressed the Num Pad Enter key ImageEnVect should exit from Memo Editing mode and switch to selection mode.

TIA


Yogi Yang
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jul 07 2016 : 20:17:59
Hi Yogi

You can use the OnTextKeyDown event:

http://www.imageen.com/help/TImageEnVect.OnTextKeyDown.html

For example:

procedure TMainForm.ImageEnVect1TextKeyDown(Sender: TObject; var Key: Word;
    Shift: TShiftState);
begin
  // Make the Enter key cancel text input
  if Key = VK_Return then
  begin
    Key := 0;
    ImageEnVect1.CancelInteracts;
  end;
end;


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com