Disable the Send bug report button

delphi package - automated exception handling
Post Reply
bwdirks
Posts: 19
Joined: Wed Feb 04, 2015 7:07 pm

Disable the Send bug report button

Post 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?
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: Disable the Send bug report button

Post 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.
bwdirks
Posts: 19
Joined: Wed Feb 04, 2015 7:07 pm

Re: Disable the Send bug report button

Post by bwdirks »

Thank you. That works perfectly.
Post Reply