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
 RichText formatting

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
aleatprog Posted - Sep 13 2021 : 04:39:46
Hi,

how must I code to format single RichText words or lines?

Examples:
1.) If I use TIETextLayer(ImageEnView1.CurrentLayer).Font.Color := FontDlg.Font.Color nothing happens as the chosen RichText word looses the selection.
2.) If I use TIETextLayer(ImageEnView1.CurrentLayer).Alignment := iejCenter it will be applied on the whole text layer, not on the selected line, and it only aligns the text correctly if in the RichText-Toolbar is defined "left alignment".

Using the sole RichText-Toolbar for formatting, the RichText is formatted correctly. Unfortunately, the look of the Toolbar doesn't fit to the app and there are errors in the translation, reason why I try to use graphically adquate icons for the main functions.

Al
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 13 2021 : 17:10:29
Hi Al

Firstly, if there are errors in translation, please let us know so we can fix them. We have an XLSX file with the translation resources that I can send you.

Formatting of rich text in text layers can only be done via the RichText property (i.e. by updating the RTF code) or when editing the text via the TIERichEdit that is used as the editor.

You might want to look at the TIERichEdit action code in iexActions.pas to see how to interact with the editor.



Nigel
Xequte Software
www.imageen.com