Change font colour when text box placed

PDF-XChange Editor SDK for Developers

Moderators: Tracker Support, TrackerSupp-Daniel, Paul - Tracker Supp, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Sean - Tracker, Tracker Supp-Stefan, Ivan - Tracker Software

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.
Post Reply
lidds
User
Posts: 408
Joined: Sat May 16, 2009 1:55 pm

Change font colour when text box placed

Post by lidds » Fri Jul 05, 2019 11:11 am

I want to change the text colour of a text box. Now I know how to do this, however the problem I have is that the op.annots.addNew or actually any annot event is not fired when placing the text box. These events only seem to be fired when you either hit ESC or place another annotation element etc.

Therefore I am unsure how to change the colour of the text when initially placed? I was thinking maybe somehow setting the Default Style for the Text Box prior to placing, however I am unsure how to do this via code?

Thanks

Simon

lidds
User
Posts: 408
Joined: Sat May 16, 2009 1:55 pm

Re: Change font colour when text box placed

Post by lidds » Mon Jul 08, 2019 12:09 pm

Sorry to chase this up as I know I only posted it on Friday, but I was wondering if u have any idea about this?

Thanks

Simon

lidds
User
Posts: 408
Joined: Sat May 16, 2009 1:55 pm

Re: Change font colour when text box placed

Post by lidds » Wed Jul 10, 2019 12:36 pm

Does anyone have any ideas about this :D

Thanks

Simon

User avatar
Sasha - Tracker Dev Team
User
Posts: 4088
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Change font colour when text box placed

Post by Sasha - Tracker Dev Team » Thu Jul 11, 2019 7:01 am

Hello Simon,

Here's the topic that should help:
viewtopic.php?f=66&t=29952&p=118567&hil ... le#p118567

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

Post Reply