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
 Popup Cut/Copy/Paste menu while editing text.

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
suriyont Posted - Feb 25 2016 : 12:49:51
Is there a way to popup a menu which allows user to cut/copy/paste text like windows text editor while in text editor mode?

Thanks,

Suri M.
7   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Feb 26 2016 : 03:36:28
Hi Suri

We'll look at adding a popup menu for edit controls in a coming update.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
suriyont Posted - Feb 25 2016 : 20:02:31
Bill,
Apparently, text editing on memo uses TIETextControl class located in ietext.pas. I ended up tweaking at ietext.pas source file. Then, I assign PopupMenu to undocumented TImageEnVect.MemoEdit(which is TIETextControl) property. Now, it is working.

Thanks again,

Suri M.
w2m Posted - Feb 25 2016 : 15:59:17
I looked at that, but I do not see a way to do it with a popup menu, but you can have a button panel appear.... there is a demo; however, that shows how to implement it.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
suriyont Posted - Feb 25 2016 : 15:20:07
Agree. I just realize that text obj. does not have border property. Do you think it is possible to add my own right-click somewhere? I've tried tapping into bunch of on-click events with no avail.

Suri M.
w2m Posted - Feb 25 2016 : 14:54:26
To be consistent ImageEn should consider adding the same popup menu to a memo object.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
suriyont Posted - Feb 25 2016 : 14:44:38
Hi Bill,
Thanks for such a quick reply. I did try your example and it works. What I did different is that I have been using [miPutMemo] because I wanted to have the right look to the object. Memo obj. can be edited like Text obj., but, somehow it does not have right-click while editing the text. I will just have to mimic Text obj. to look like Memo somehow.

Thanks again,



Suri M.
w2m Posted - Feb 25 2016 : 13:25:49
I created a new project to test the popupmenu. I added a panel with two buttons and aligned the panel to alTop. I added a ImageEnVect and set its alignment to alClient. I added this code:
procedure TForm1.Select1Click(Sender: TObject);
begin
  ImageEnVect1.MouseInteractVt := [miObjectSelect];
end;

procedure TForm1.SpeedButton2Click(Sender: TObject);
begin
  ImageEnVect1.MouseInteractVt := [miPutText];
end;

With this very simple demo, the popupmenu to achieve cut, copy or paste is built in. Just add a text object and enter edit mode by double clicking the text object and then right click and a built in popupmenu will appear to provide these features automatically with no other code. The project uses default ImageEnVect properties and no other code was added to the demo. In addition the vectorial demo also does the same thing, so you must be overriding the popup menu somehow.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development