Page 1 of 1

Deselect checkmark option in Tool->Edit-Preferences-Commenting

Posted: Fri Sep 15, 2017 11:50 pm
by asamrith@gmail.com
Hi, If you navigate on the toolbar to Edit->Preferences-Commenting, the option ☑ Display Author Label in comment pop-ups and tooltips is selected by default. How do I deselect in C# code, this option? I could not located the command in the Fulldemo command list. I have attached a pic of this.

Re: Deselect checkmark option in Tool->Edit-Preferences-Commenting

Posted: Mon Sep 18, 2017 7:49 am
by Sasha - Tracker Dev Team
Hello asamrith@gmail.com,

Use this piece of code:

Code: Select all

uint nPopupFlags = (uint)pdfCtl.Inst.Settings["Commenting.PopupDispOptions"].Int;
uint nAuthorFlag = 0x2;
nPopupFlags = nPopupFlags & ~nAuthorFlag; //Removing the Author flag
pdfCtl.Inst.Settings["Commenting.PopupDispOptions"].v = nPopupFlags;
uint nRPopupFlags = (uint)pdfCtl.Inst.Settings["Commenting.PopupReplyDispOptions"].Int;
nRPopupFlags = nRPopupFlags & ~nAuthorFlag;
pdfCtl.Inst.Settings["Commenting.PopupReplyDispOptions"].v = nRPopupFlags;
pdfCtl.Inst.FireAppPrefsChanged(PXV_AppPrefsChanges.PXV_AppPrefsChange_Commenting);
Cheers,
Alex

Re: Deselect checkmark option in Tool->Edit-Preferences-Commenting

Posted: Tue Sep 19, 2017 4:55 pm
by asamrith@gmail.com
thanks so much, exactly what I was looking for... : :)

Re: Deselect checkmark option in Tool->Edit-Preferences-Commenting

Posted: Wed Sep 20, 2017 7:39 am
by Sasha - Tracker Dev Team
:)