Jump to content
uniGUI Discussion Forums
Sign in to follow this  
Kanat

Problem Copy, Paste UniEdit Text Popup menu

Recommended Posts

 

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.

 

 

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

but on two different computers. later on I will try to throw a link to the server

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×