Page 1 of 1

Reply color not saving

Posted: Mon Jun 19, 2017 10:31 pm
by stephen.starr
I am using v319 of the Editor SDK and I couldn't find any answers on the forums.

When I create a reply it is always yellow (default). If I change the color of the reply and hit the "Make current properties default", it changes the color for new comments but the replies are still always yellow. I can reproduce this behavior in the full demo.

I found an instance setting I can set: "Commenting.NewReplyColor", but I can't find a way to get the users current default color of the popup. Using the parent won't work because the user may be replying to someone else's comment which can be a different color.

I would like each user to be able to set their own colors and have that apply to both the new comments and any replies.

Thank you,
Stephen

Re: Reply color not saving

Posted: Tue Jun 20, 2017 9:05 am
by Sasha - Tracker Dev Team
Hello Stephen,

We will investigate whether this behavior is a bug or made with some intentions and will reply back.
What you can do is to do the color setting manually by catching the add annotations event and then check this property
https://sdkhelp.pdf-xchange.com/vie ... on_ReplyTo
If it's an reply, you can modify the popup data with the color you need, set it to the reply annotation and let the operation continue. This should work for you.

Cheers,
Alex

Re: Reply color not saving

Posted: Tue Jun 20, 2017 4:10 pm
by stephen.starr
Thank you Alex.

I am already doing this and it works. The problem is I don't know how to get the color I need which is the default comment color for the user. Is there a setting that would give me this?

Re: Reply color not saving

Posted: Wed Jun 21, 2017 10:52 am
by Sasha - Tracker Dev Team
Hello Stephen,

Use the CabNodeExplorer to look into this setting:
Tools.StickyNote.Style
This setting dictionary holds the data of the currently used sticky note style.

Cheers,
Alex

Re: Reply color not saving

Posted: Wed Jun 21, 2017 5:08 pm
by stephen.starr
Thank you Alex, worked great.

Re: Reply color not saving

Posted: Thu Jun 22, 2017 6:02 am
by Sasha - Tracker Dev Team
:)