Customize rectangle drawing of a selected annotation (IPXV_AnnotSelection)  SOLVED

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
zarkogajic
User
Posts: 1372
Joined: Thu Sep 05, 2019 12:35 pm

Customize rectangle drawing of a selected annotation (IPXV_AnnotSelection)

Post by zarkogajic »

Hi Support,

What would it take to alter the drawing of the selection rectangle around a selected annotation:

image.png
image.png (8.47 KiB) Viewed 878 times

?

Why: for some specific annots I'd like a different border color for that selection rectangle.

I can IPXV_PagesView.RegisterDrawCallback if that is the answer - just not sure how to "inject into" drawing that rectangle for an annotation.


Edit: p.s.
I can achieve something with InstUI.Theme.SetColor("selection", ...) and/or Inst.Settings["CustomUI"]["Colors"] - but that's not what gives the results I need.

-žarko
zarkogajic
User
Posts: 1372
Joined: Thu Sep 05, 2019 12:35 pm

Re: Customize rectangle drawing of a selected annotation (IPXV_AnnotSelection)  SOLVED

Post by zarkogajic »

HI Support,

I've managed to have what I wanted using InstUI.Theme.SetColor and some timers. Consider solved.

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

Customize rectangle drawing of a selected annotation (IPXV_AnnotSelection)

Post by Sasha - Tracker Dev Team »

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