Change font colour when text box placed

PDF-XChange Editor SDK for Developers

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

Change font colour when text box placed

Post by lidds »

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: 510
Joined: Sat May 16, 2009 1:55 pm

Re: Change font colour when text box placed

Post by lidds »

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: 510
Joined: Sat May 16, 2009 1:55 pm

Re: Change font colour when text box placed

Post by lidds »

Does anyone have any ideas about this :D

Thanks

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

Re: Change font colour when text box placed

Post by Sasha - Tracker Dev Team »

Hello Simon,

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

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply