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.