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
 Editing TIERichEdit Font of selected text with the FontDialog?

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
PeterPanino Posted - Mar 28 2024 : 08:01:32
Please look at the attached small test project:

attach/PeterPanino/202432875122_TIERichEditFontTest2.zip
76.59 KB

Please follow these steps:

1. Click the 'Add Text' button to add text

2. Select a portion of text to show the IERichEdit Toolbar

3. Click the left-most Font button on the toolbar to show the Font Dialog

4. In the Font Dialog, don't change anything; just click the OK button: This CHANGES THE FONT SIZE of the selected text!

Is this a bug?
7   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Apr 03 2024 : 15:37:13
Hi Peter

That is handled by the RichEdit unfortunately (ECO_AUTOWORDSELECTION).

Nigel
Xequte Software
www.imageen.com
PeterPanino Posted - Mar 31 2024 : 09:15:47
When the user double-clicks a word, the adjacent space character is automatically selected as well:



This sets the ToolBar properties to the character properties of the space character (in the screenshot example above, it sets the font color to BLACK).
But when the user double-clicks a word, she supposedly wants to change the font properties of that word and not the font properties of the space character after the double-clicked word.
So, when double-clicking a word in TIERichEdit, only the double-clicked word should be selected, and not the character after the word.

What do you think?
PeterPanino Posted - Mar 31 2024 : 06:32:58
Hi Nigel

Thank you for everything, and Happy Easter!
xequte Posted - Mar 30 2024 : 18:15:57
Hi Peter

I have implemented this in the current beta.

Nigel
Xequte Software
www.imageen.com
PeterPanino Posted - Mar 30 2024 : 17:36:43
TIERichEdit font size editing suggestion:



When changing the font size of a text containing multiple text styles (like the one in the example above), only the font size should be changed while keeping the other styles. This is the way a standard text editor would change the font size.

What do you think?
PeterPanino Posted - Mar 29 2024 : 18:39:33
Hi Nigel,

Thanks a lot! That was one of the most straightforward bug fixes I've ever had!
xequte Posted - Mar 29 2024 : 17:30:49
Hi Peter

That is a bug in that InsertFormattedText() overload. You can email me for a fix or pass a negative height value to InsertFormattedText().

Nigel
Xequte Software
www.imageen.com