Kanat Posted October 21, 2015 Share Posted October 21, 2015 Uses CLIPBrd.... Select the text UniEdit and click the right mouse button and run context menu . procedure TMainForm.CommentEditMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); begin if Button=mbRight then UniPopupMenu1.Popup(828+X,Height+18+Y); end; When I want to copy the selected uniedit text. procedure TMainForm.N1Click(Sender: TObject); begin Clipboard.Clear; Clipboard.AsText:=CommentEdit.Text; end; After right-clicking the selection text disappears. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted October 21, 2015 Administrators Share Posted October 21, 2015 Clipboard It is a VCL class based on Windows API. It will not work in a web app. Link to comment Share on other sites More sharing options...
Kanat Posted October 21, 2015 Author Share Posted October 21, 2015 Clipboard It is a VCL class based on Windows API. It will not work in a web app. I checked it works web app not Properties of uniedit.seltext Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted October 21, 2015 Administrators Share Posted October 21, 2015 It may work when server and client both are in same PC (Sharing same clipboard) What will happen when client is running in a brwoser in another PC? Link to comment Share on other sites More sharing options...
Kanat Posted October 22, 2015 Author Share Posted October 22, 2015 It may work when server and client both are in same PC (Sharing same clipboard) What will happen when client is running in a brwoser in another PC? create ISAPI dll module run to my IIS server. "Clipboard" It works fine. Farshad, please, in the next version UniGUI can add Properties of uniedit.seltext Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted October 22, 2015 Administrators Share Posted October 22, 2015 It is technically impossible to access Clipboard when server and client are on different PCs unless you have a special library which handles it. Link to comment Share on other sites More sharing options...
Kanat Posted October 22, 2015 Author Share Posted October 22, 2015 inside my application page this function works. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted October 22, 2015 Administrators Share Posted October 22, 2015 Is your app and server on same PC? Link to comment Share on other sites More sharing options...
Kanat Posted October 22, 2015 Author Share Posted October 22, 2015 but on two different computers. later on I will try to throw a link to the server Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now