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
 RichText background while editing is causing problems
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
727 Posts

Posted - Oct 22 2021 :  06:50:21  Show Profile  Reply
Hello Nigel,

I am using IE 10 currently. We are on verge of releasing an update of our software.

We have observed that when a user is editing Text in text layer the background of text layer is set as white. Because of this if the user has set the text color to clWhite then the text are not visible while editing.

How to get IE to show text in different color if the color of text is White?

TIA

Yogi Yang

xequte

38615 Posts

Posted - Oct 25 2021 :  00:02:21  Show Profile  Reply
Hi Yogi

Unfortunately I do not know of a good solution to that. Perhaps we could match the existing background color of the text layer, but that would still be a problem if the layer was transparent (as the editor would need to have a background).

You can customize the editor background color yourself using the OnActivateTextEditor event.

https://www.imageen.com/help/TImageEnView.OnActivateTextEditor.html


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

yogiyang

India
727 Posts

Posted - Nov 22 2021 :  23:37:03  Show Profile  Reply
Hello Nigel,

Thanks for the tip.

I managed to solve the Background color problem using following code:
TRichEdit(ActiveControl).Color := clLtGray


TIA

Yogi Yang
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: