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
 Enable Paste function in TImageEnMView

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
aleatprog Posted - Jul 19 2019 : 14:15:28
Please, could you list up the single steps I've to add to project + code in order to enable Paste for TImageEnMView?

Thank you,
Al
3   L A T E S T    R E P L I E S    (Newest First)
aleatprog Posted - Jul 20 2019 : 03:27:40
Thank you for reply, Nigel.

Indeed, the above code is an action connected to a button, but I forgot the shortcut option inside the action properties. To get the desired behaviour it is sufficient specifying Ctrl+V as shortcut for the action.

In fact, I see only now that in your demo the action is connected to the shortcut Ctrl+V, too.

Al
xequte Posted - Jul 20 2019 : 01:36:34
Hi

Either watch for ssCtrl + VK_V in TImageEnView.OnKeyUp and then call your paste code.

Or add a TActionList component to your form and add TImageEnMViewPasteFromClipboard to it.



Nigel
Xequte Software
www.imageen.com
aleatprog Posted - Jul 19 2019 : 14:25:38
Just for explanation, I added a button with the following code:

if ImageEnMView.Proc.CanPasteFromClipboard then
begin
ImageEnMView.AppendImage(0, 0);
ImageEnMView.Proc.PasteFromClipboard(iecpAuto, True, True, False);
end;

which works perfectly. But I like to have Paste support without the usage of a button or menu, like it is in the Demo.

Adding "iexActionsMulti" to "uses" or "PasteFromClipboard: TImageEnMViewPasteFromClipboard;" as variable doesn't work.