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
 Activate textedit in ImageEnVect using code?

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
julle Posted - Jan 25 2012 : 09:22:43
Is it possible to activate the text edit in ImageEnVect by code when you add new object?

4   L A T E S T    R E P L I E S    (Newest First)
julle Posted - Jan 27 2012 : 05:56:11
OK, looking forward to the next minor release
fab Posted - Jan 27 2012 : 04:32:57
Unfortunately this is not possible now. Anyway next minor release will have a new event named OnTextEdit (that is like OnActivateTextEdit with more parameters) that passes the editing visual object, so you can better control it.
For example, in order to select all text whenever a text edit is edited you can write (FROM NEXT MINOR RELEASE!!):

procedure TForm1.ImageEnVect1TextEdit(Sender: TObject; hobj: Integer; VisualObject: TObject);
begin
  if VisualObject is TEdit then
    (VisualObject as TEdit).SelectAll;
end;
julle Posted - Jan 27 2012 : 03:25:32
Thanks, that works.

One question more, is it possible to select all text in the text edit by code?
fab Posted - Jan 26 2012 : 00:47:45
Yes, it is possible. Just set ObjTextEditMode to the handle of the object (Memo or Text) to edit:

ImageEnVect1.ObjKind[-1] := iekTEXT;
ImageEnVect1.ObjTextEditMode := ImageEnVect1.AddNewObject();