Page 1 of 1

custom dialog for add reply menu

Posted: Thu Aug 17, 2017 9:25 am
by asamrith@gmail.com
Any suggestion on how I can popup my own custom dialog when the add reply is selected so a user can enter reply text in the popup custom dialog instead of the SDK reply that appears under the comment?
For example, do I do this in e_beforeShowContextMenu or e_annots_inserted?
What event will allow me to capture the add reply click then popup my custom reply dialog?

Thanks.

Re: custom dialog for add reply menu

Posted: Thu Aug 17, 2017 11:13 am
by Sasha - Tracker Dev Team
Hello asamrith@gmail.com,

You mean that you want to handle the Add Reply click? If so then the custom command handler would work - just catch the OnNotify method and your implementation. It's the cmd.annot.addReply command.

Cheers,
Alex

Re: custom dialog for add reply menu

Posted: Fri Aug 18, 2017 10:05 pm
by asamrith@gmail.com
thank you for the suggestion. I found another way of doing this that is not as elegant but works for us.

1. I trap the add reply in the event, e_annots_inserted
2. delete the reply annot
3. popup custom modal reply dialog at the cursor position of the comment

Re: custom dialog for add reply menu

Posted: Mon Aug 21, 2017 10:47 am
by Sasha - Tracker Dev Team
:)