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
 How to focus on a TextLayer so delete key works

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
john_siggy@yahoo.com Posted - Jan 11 2020 : 11:37:43
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


2   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jan 12 2020 : 21:27:04
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
john_siggy@yahoo.com Posted - Jan 11 2020 : 11:43:18
Happens upon adding an ieTextLayer that layer is "grabbed" but not responding to "delete" key.