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
 Text layer ActivateEditor

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
jrpcguru Posted - Jul 02 2019 : 10:30:17
I programmatically create a text layer and insert text into it, like this:

      ImageEnView1.LayersAdd(ielkText);
      With ImageEnView1do
        case CurrentLayer.Kind of
          ielkText: TIETextLayer( CurrentLayer ).Text := inText ;
        end;

      ImageEnView1.Update();


This works very nicely. But I run into a problem when I try to programmatically active the text layer editor:

TIETextLayer(ImageEnView1.CurrentLayer).ActivateEditor;


With ActivateEditor the new text layer remains visually empty until I wave the mouse over it. At first I thought the program had frozen, so it doesn't provide good user feedback. I've tried updating the image object after using ActivateEditor but it makes no difference. Is there any way to convince it to display immediately with the editor activated?

Second question that got lost in a prior post: Is there a way to customize the right click menu for the text layer editor? The default menu has options that I think many users would not understand.
I'm using 8.6.0.


J.R.
2   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Apr 03 2020 : 00:30:34
FYI JR, custom popup menus will be in the next release.

Nigel
Xequte Software
www.imageen.com
xequte Posted - Jul 02 2019 : 18:15:08
Hi JR

Please call Application.ProcessMessages(); before ActivateEditor in this situation. It seems that a a paint event has not yet occurred. I will have a fix in the next update.

At this time the popup menu cannot be changed. It is the standard TEdit popup. I'll look a this for a coming version.



Nigel
Xequte Software
www.imageen.com