Hi Support,
I'm adding an FFT_Text field using AcroForm.CreateField. I can set some props like multiline using TFF_MultiLine flag.
What flag to use or how to set "Alignment"?
-žarko
Text Field Properties: Alignment (set from code) ? SOLVED
Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
-
- User
- Posts: 1372
- Joined: Thu Sep 05, 2019 12:35 pm
Text Field Properties: Alignment (set from code) ?
You do not have the required permissions to view the files attached to this post.
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: Text Field Properties: Alignment (set from code) ?
Hello zarkogajic,
When you have the IPXC_FormField interface, then you can obtain the Widget. After that cast it's Data to IPXC_AnnotData_Widget and you will have the DefaultTextAlign method - then you can set it for example with UIX_TextAlign.UIX_TextAlign_Center.
Cheers,
Alex
When you have the IPXC_FormField interface, then you can obtain the Widget. After that cast it's Data to IPXC_AnnotData_Widget and you will have the DefaultTextAlign method - then you can set it for example with UIX_TextAlign.UIX_TextAlign_Center.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
-
- User
- Posts: 1372
- Joined: Thu Sep 05, 2019 12:35 pm
Re: Text Field Properties: Alignment (set from code) ?
Hi Alex,
UIX_TextAlign_Center cannot be used for that - it specifies non applicable values
The correct value for DefaultTextAlign center alignment is "1" - but it seems there's no enum defined for it?
-žarko
UIX_TextAlign_Center cannot be used for that - it specifies non applicable values
The correct value for DefaultTextAlign center alignment is "1" - but it seems there's no enum defined for it?
-žarko
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: Text Field Properties: Alignment (set from code) ?
Hello zarkogajic,
Yup, sorry - the possible values are from PXC_TextJustification flags:
TJ_Left = 0
TJ_Center = 1
TJ_Right = 2
Cheers,
Alex
Yup, sorry - the possible values are from PXC_TextJustification flags:
TJ_Left = 0
TJ_Center = 1
TJ_Right = 2
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
-
- User
- Posts: 1372
- Joined: Thu Sep 05, 2019 12:35 pm
Re: Text Field Properties: Alignment (set from code) ? SOLVED
Hi Alex,
That's it, thanks.
-ž
That's it, thanks.
-ž
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Text Field Properties: Alignment (set from code) ?
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ