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
 Editing TIERichEdit Font of selected text with the FontDialog?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

860 Posts

Posted - Mar 28 2024 :  08:01:32  Show Profile  Reply
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?

xequte

38182 Posts

Posted - Mar 29 2024 :  17:30:49  Show Profile  Reply
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
Go to Top of Page

PeterPanino

860 Posts

Posted - Mar 29 2024 :  18:39:33  Show Profile  Reply
Hi Nigel,

Thanks a lot! That was one of the most straightforward bug fixes I've ever had!
Go to Top of Page

PeterPanino

860 Posts

Posted - Mar 30 2024 :  17:36:43  Show Profile  Reply
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?
Go to Top of Page

xequte

38182 Posts

Posted - Mar 30 2024 :  18:15:57  Show Profile  Reply
Hi Peter

I have implemented this in the current beta.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

PeterPanino

860 Posts

Posted - Mar 31 2024 :  06:32:58  Show Profile  Reply
Hi Nigel

Thank you for everything, and Happy Easter!
Go to Top of Page

PeterPanino

860 Posts

Posted - Mar 31 2024 :  09:15:47  Show Profile  Reply
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?
Go to Top of Page

xequte

38182 Posts

Posted - Apr 03 2024 :  15:37:13  Show Profile  Reply
Hi Peter

That is handled by the RichEdit unfortunately (ECO_AUTOWORDSELECTION).

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