PDA

View Full Version : Options checkable at runtime


Karl Palm
04-Dec-2005, 05:48 PM
Hi,

is it possible at runtime to change the settings for i.e. showing the
"request"-dialog.
Perhaps you could add a button to Eurekalogs message box. And the user
decides to add a comment.
I think, only in some cases the user want to add a comment.
Most of my error-messages are such as "the value 123456 is to big"

--
Herzlichst
Karl

admin
05-Dec-2005, 03:30 PM
Hi,

Karl Palm wrote:
> Hi,
>
> is it possible at runtime to change the settings for i.e. showing the
> "request"-dialog.

Yes of course, you can use the CurrentEurekaLogOptions function or the
EurekaExceptionRecord.CurrentModuleOptions if used in an EurekaLog event.

Example:

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

uses
ExceptionLog, ECore, ETypes;

begin
...
CurrentEurekaLogOptions.ExceptionDialogOptions :=
(CurrentEurekaLogOptions.ExceptionDialogOptions -
[edoShowExceptionDialog]);
...
end;

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

> Perhaps you could add a button to Eurekalogs message box. And the user
> decides to add a comment.
> I think, only in some cases the user want to add a comment.
> Most of my error-messages are such as "the value 123456 is to big"
>

It's a real good suggestion, thank you! :)


--
Best regards...

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