ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Text layer ActivateEditor
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

jrpcguru

USA
254 Posts

Posted - Jul 02 2019 :  10:30:17  Show Profile  Reply
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.

xequte

38176 Posts

Posted - Jul 02 2019 :  18:15:08  Show Profile  Reply
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
Go to Top of Page

xequte

38176 Posts

Posted - Apr 03 2020 :  00:30:34  Show Profile  Reply
FYI JR, custom popup menus will be in the next release.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: