EurekaLog newsgroups
Go Back   EurekaLog newsgroups > Support > General
Reply
 
Thread Tools Display Modes
  #1  
Old 20-Dec-2005, 01:36 PM
TonyFjordén TonyFjordén is offline
Junior Member
 
Join Date: Dec 2005
Posts: 1
Question ExcRecord.CurrentModuleOptions.ShowExceptionDialog missing?

In the manual the following example code exist.
But when I try to find it in the codecompletion in Delphi 7 it doesn't exist?
How do I prevent the built in dialog from popping?

/Tony

// Show exception dialog?

procedure MyNotify(ExcRecord: TEurekaExceptionRecord; var Handled: Boolean);

begin

ExcRecord.CurrentModuleOptions.ShowExceptionDialog :=

MessageBox(0, 'Do you want to show error details?', 'Question',

MB_YESNO or MB_ICONQUESTION or MB_TASKMODAL)=ID_YES;

end;
Reply With Quote
  #2  
Old 27-Dec-2005, 05:43 PM
admin
Guest
 
Posts: n/a
Default Re: ExcRecord.CurrentModuleOptions.ShowExceptionDialog missing?

Hi,

TonyFjordén wrote:
> In the manual the following example code exist.
> But when I try to find it in the codecompletion in Delphi 7 it doesn't
> exist?
> How do I prevent the built in dialog from popping?
>
> /Tony
>
> // Show exception dialog?
>
> procedure MyNotify(ExcRecord: TEurekaExceptionRecord; var Handled:
> Boolean);
>
> begin
>
> ExcRecord.CurrentModuleOptions.ShowExceptionDialog :=
>
> MessageBox(0, 'Do you want to show error details?', 'Question',
>
> MB_YESNO or MB_ICONQUESTION or MB_TASKMODAL)=ID_YES;
>
> end;


I'm sorry it's a manual error.

As you can see at: http://www.eurekalog.com/docs/old4_5_xversion.html in
the next 5.x version same old property are changed.

Now to hide/show the Exception Dialog you must use the following code:

//----------------------------------------------------------------------

uses ExceptionLog, ECore, ETypes;

procedure TForm1.EurekaLog1ExceptionNotify(
EurekaExceptionRecord: TEurekaExceptionRecord; var Handled: Boolean);
begin
with EurekaExceptionRecord.CurrentModuleOptions do
begin
if (MessageBox(0, 'Do you want to show error details?', 'Question',
MB_YESNO or MB_ICONQUESTION or MB_TASKMODAL) = ID_YES) then
ExceptionDialogOptions := (ExceptionDialogOptions +
[edoShowExceptionDialog])
else
ExceptionDialogOptions := (ExceptionDialogOptions -
[edoShowExceptionDialog]);
end;
end;


//----------------------------------------------------------------------

--
Best regards...

Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG, every time!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
missing ExceptionLog.pas Michael Gurnett Bugreports 7 10-May-2012 12:43 PM
EurekaExceptionRecord.CurrentModuleOptions vs. CurrentEurekaLogOptions bCrooker General 1 26-Mar-2008 10:33 AM
ExcRecord.ExceptionObject types chrigu General 3 17-Oct-2007 06:54 AM
What happened to : CurrentEurekaLogOptions.ShowExceptionDialog redsnapper General 1 10-Nov-2005 10:09 AM

All times are GMT. The time now is 11:20 AM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright © EurekaLab s.a.s. - VAT ID: IT05554520824