Change annotation line colour before draw...

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 annotation line colour before draw...

Post by lidds »

I am using the following code to place a line annotation. If for example I wanted the line to be blue, how would I go about doing this?

Code: Select all

            Dim cmd As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.tool.annot.line")
            Me.docPreview.Inst.ExecUICmd2(cmd.ID)
Thanks in advance

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

Re: Change annotation line colour before draw...

Post by Sasha - Tracker Dev Team »

Hello lidds,

Well, you can change the standard Line tool color in settings for that. To find this setting use the CABNodeExplorer application.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Re: Change annotation line colour before draw...

Post by lidds »

Hi Alex,

I'm still struggling with this as I am unsure how to achieve this. Would it be possible for a short code snippet??

Thanks in advance

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

Re: Change annotation line colour before draw...

Post by Sasha - Tracker Dev Team »

Hello Simon,

Have you tried using forum's search? I'm pretty sure there was a topic like this in the Editor SDK thread.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Re: Change annotation line colour before draw...

Post by lidds »

Hi Alex,

I have searched on the forums but cannot see any that address how to globally set the color of annotation elements.

Thanks

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

Re: Change annotation line colour before draw...

Post by Sasha - Tracker Dev Team »

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