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