lock selection of fill / stroke color

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Paul - Tracker Supp, Chris - Tracker Supp, 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
User avatar
MartinCS
User
Posts: 152
Joined: Thu Apr 07, 2011 10:01 am
Contact:

lock selection of fill / stroke color

Post by MartinCS » Tue Sep 11, 2018 7:00 am

Hi Tracker Team,

is there an option to prevent the user selection of fill and stroke color for commenting tools?
2018-09-11_08-52-08.png
I'm already setting the default color programmatically. But the user shouldn't be able to change the selection.

Cheers,
Martin

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

Re: lock selection of fill / stroke color

Post by Sasha - Tracker Dev Team » Tue Sep 11, 2018 11:40 am

Hello Martin,

For starters, you should remove those items from the annotation properties (if you want to forbid your users to change that). Here's how it can be done:
viewtopic.php?f=66&t=28041&p=108883&hil ... st#p108883
Then you will have to obtain the cmd.scolor and cmd.fcolor IUIX_Cmd from the command manager and set their states to disabled or hidden (or both).

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

Post Reply