Disable the Send bug report button

delphi package - automated exception handling

Disable the Send bug report button

Postby bwdirks » Thu Sep 21, 2017 7:56 pm

After a user clicks the Send bug report button I want to disable that button, or make it invisible. How do I do that?
bwdirks
 
Posts: 10
Joined: Wed Feb 04, 2015 7:07 pm

Re: Disable the Send bug report button

Postby madshi » Thu Sep 21, 2017 9:36 pm

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

Re: Disable the Send bug report button

Postby bwdirks » Fri Sep 22, 2017 12:53 pm

Thank you. That works perfectly.
bwdirks
 
Posts: 10
Joined: Wed Feb 04, 2015 7:07 pm


Return to madExcept

Who is online

Users browsing this forum: No registered users and 2 guests