Page 1 of 1

Change font colour when text box placed

Posted: Fri Jul 05, 2019 11:11 am
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

Re: Change font colour when text box placed

Posted: Mon Jul 08, 2019 12:09 pm
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

Re: Change font colour when text box placed

Posted: Wed Jul 10, 2019 12:36 pm
by lidds
Does anyone have any ideas about this :D

Thanks

Simon

Re: Change font colour when text box placed

Posted: Thu Jul 11, 2019 7:01 am
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