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
 How to focus on a TextLayer so delete key works
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

john_siggy@yahoo.com

USA
103 Posts

Posted - Jan 11 2020 :  11:37:43  Show Profile  Reply
Hey Nigel,

How do I programatically select a text layer so it is highlighted
("grabbed") and will respond to pressing the "delete" key?

Seems to be default behavior to delete selected image(s) by pressing "delete" key but a text layer may have grab-handles around it but not respond to "delete" key.



Happy New Year,


John


john_siggy@yahoo.com

USA
103 Posts

Posted - Jan 11 2020 :  11:43:18  Show Profile  Reply
Happens upon adding an ieTextLayer that layer is "grabbed" but not responding to "delete" key.
Go to Top of Page

xequte

4977 Posts

Posted - Jan 12 2020 :  21:27:04  Show Profile  Reply
Hi

I tested this using the layers demo by creating three layers and calling this code:

  ImageEnView1.LayersDeselectAll();
  ImageEnView1.LayersCurrent := ImageEnView1.LayersCount - 1;
  ImageEnView1.SetFocus();


It worked as expected (clicking Delete removed the text layer).

Can you give me more information?

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