lock selection of fill / stroke color

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
User avatar
MartinCS
User
Posts: 153
Joined: Thu Apr 07, 2011 10:01 am
Contact:

lock selection of fill / stroke color

Post by MartinCS »

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
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: lock selection of fill / stroke color

Post by Sasha - Tracker Dev Team »

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
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply