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
 Save text format
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

AndNit

Brazil
81 Posts

Posted - Sep 16 2023 :  13:47:49  Show Profile  Reply
Hello,

When adding a text layer and changing, for example, the text color and font size, these settings are not saved when I open a new text layer.

How to keep this saved and if not possible, how to save these settings in variables when the user changes them?

xequte

38608 Posts

Posted - Sep 17 2023 :  23:16:31  Show Profile  Reply
Hi

There is not an option for this at present, but you could store the current properties whenever they change and apply them when new layers are added:

http://www.imageen.com/help/TIELayer.GetProperties.html

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

AndNit

Brazil
81 Posts

Posted - Sep 18 2023 :  15:09:37  Show Profile  Reply
Hello ,

The recommended solution did not resolve the problem. I can't capture the color and font the user selected? Being able to get this information when calling a new text box I would pass these values, this demand is very complicated here and would be very useful for our system.

I do it like this, but when I go to get this information, it always shows a black pattern in the color and a pattern in the font size as well.

TIETextLayer( image.CurrentLayer ).Font.Color := ClRed

TIETextLayer( image.CurrentLayer ).Font.Size := 20
Go to Top of Page

xequte

38608 Posts

Posted - Sep 18 2023 :  17:47:49  Show Profile  Reply
Hi

Is this with a rich text layer, i.e. EnableFormatting=True

http://www.imageen.com/help/TIETextLayer.EnableFormatting.html

Can you attach a screenshot of what you are seeing?

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

AndNit

Brazil
81 Posts

Posted - Sep 18 2023 :  18:08:06  Show Profile  Reply
Yes, EnableFormatting is True in my code.

The problem is not sending formatting for color or font size, but rather recovering the color or font size that the user entered during use.

For example:

I configured it to start with the color red, font 20, but the user changed it to yellow and font size 50. I would like to get these values #8203;#8203;so that when the text box is opened again, it opens with these settings.
Go to Top of Page

xequte

38608 Posts

Posted - Sep 19 2023 :  19:44:47  Show Profile  Reply
Hi

You can email me to test an update that sets the layer font when editing rich text layers.

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

AndNit

Brazil
81 Posts

Posted - Sep 21 2023 :  07:07:22  Show Profile  Reply
hello,

Thank you for your attention, I've emailed you.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: