Page 1 of 1

Disable the Send bug report button

Posted: Thu Sep 21, 2017 7:56 pm
by bwdirks
After a user clicks the Send bug report button I want to disable that button, or make it invisible. How do I do that?

Re: Disable the Send bug report button

Posted: Thu Sep 21, 2017 9:36 pm
by madshi
That's not really a built-in functionality. But I suppose you could do something like this in an RegisterExceptActionHandler:

Code: Select all

EnableWindow(FindWindowEx(GetExceptBoxHandle(), 0, 'Button', PChar(exceptIntf.SendBtnCaption)), false);
Not tested.

Re: Disable the Send bug report button

Posted: Fri Sep 22, 2017 12:53 pm
by bwdirks
Thank you. That works perfectly.