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
 ObjTextAutoSize no effect if ObjText modified at OnNewObject
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

bitfarm

1 Posts

Posted - Feb 16 2023 :  09:37:42  Show Profile  Reply
Hi,

i would like to use ObjTextAutoSize for setting the size of a new Object.
There are variables that have to be replaced (e.g. %now%). We decided to make the replacement at the OnNewObject Event. Unfortunately the ObjTextAutoSize won't take effect, if ObjText is going to be modified at this point.

Is there any method i could use for triggering the AutoSize or calculating the new width?

kind regards

xequte

38176 Posts

Posted - Feb 16 2023 :  14:07:09  Show Profile  Reply
Hi

In this situation you would probably need to use TImageEnVect.OnVectorialChanged to be able to access the size data of the object:

https://www.imageen.com/help/TImageEnVect.OnVectorialChanged.html

You could set a field in OnNewObject to know the change is due to a new object.



Also, if this is a new project, you should use layers rather than objects:

https://www.imageen.com/help/TImageEnVect_vs_TIELayers.html

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