Specifies a custom handler for message box.
Unit
Syntax
|
Value
Contains message box handler. Can be nil. By default message box outputs message to the console for console applications and uses a windowed dialog box otherwise.
Remarks
Tip |
This is routine from low-level unit. Do not use this unit unless you need to extend or alter EurekaLog behavior. |
Do not call it. Call MessageBox or ShowInternalErrorMessage routines instead.
You can assign this variable to your own custom handler to be add support for some application type.
Note |
Have no effect for IDE itself. |
Warning |
If you change this variable to your own handler at any stage - do not forget to restore previous handler at opposite stage. I.e. you need to save and restore handler. |
Examples
Example of trivial MessageBox handler:
procedure CustomInternalHandler(const AText, ACaption: String; const AFlags: Cardinal);
begin
Windows.MessageBox(PChar(AText), PChar(ACaption), AFlags);
end;
var
SavedHandler: TMessageBoxProc;
initialization
SavedHandler := _CustomMessageBox;
_CustomMessageBox := CustomInternalHandler;
finalization
_CustomMessageBox := SavedHandler;
See also
| Send feedback... |
Build date: 2015-09-24 Last edited: 2015-09-24 |
|
PRIVACY STATEMENT The documentation team uses the feedback submitted to improve the EurekaLog documentation. We do not use your e-mail address for any other purpose. We will remove your e-mail address from our system after the issue you are reporting has been resolved. While we are working to resolve this issue, we may send you an e-mail message to request more information about your feedback. After the issues have been addressed, we may send you an email message to let you know that your feedback has been addressed. Permanent link to this article: http://www.eurekalog.com/help/eurekalog/topic_var_eapptype__custommessagebox.php |
|