Thanks for the quick response
Memo is implemented via MLTE HITextView and I did not find a way how to enable paste commands. If you know how to do it, please let me know.
this code creates a HIViewText and adds it to the main window. (The window is created using Nib service, not LCL). copy/paste commands are working by default.
Is it possible that LCL somehow blocks Paste events? (kEventServicePaste)
:?
var
cg : HIRect;
hi : HIViewRef;
begin
cg.origin.x := 10;
cg.origin.y := 200;
cg.size.width := 300;
cg.size.height := 200;
HITextViewCreate(@cg, 0, 0, hitxt);
HIViewAddSubview(mainwnd.ClientRef, hitxt);
HIViewSetVisible(hitxt, true);
end;
another interesting thing, is that Memo.PasteFromClipboard works perfectly, event better than original carbon.
I can't paste text from native MacOS applications to X11 Lazarus (i think i've seen the solution for this is given somethere in the Lazarus wiki).
But .PasteFromClipboard clearly understands the X11 clipboard.
anyway, the correct answer lies somethere in the carbon widgetset sources. And downloading newer version!
Thanks! Gone studing and updating.