My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
TPJVCLMsgDlgOnShow  
Description of the TPJVCLMsgDlg.OnShow event
Updated May 8, 2011 by delphidabbler

OnShow event

Project: Message Dialog Components.

Unit: PJMessageDialog.

Class: TPJVCLMsgDlg

type
  TPJVCLMsgDlgFormEvent = procedure(
    Sender: TObject; Dlg: TForm
  ) of object;

property OnShow: TPJVCLMsgDlgFormEvent;

Description

The OnShow event is triggered just before the component's dialog box is displayed. A reference the component itself is passed to the event handler's Sender parameter while the Dlg parameter references the dialog box form.

The Dlg parameter can be used to customise the appearance of the dialog box. Any tidying up of such customisation or any interpretation of the results of the customisation can be carried out by handling the OnHide event.

Warning: The form referenced by the Dlg parameter is only valid while the dialog box is displayed - it is destroyed when the dialog is closed. It is safe to use the form reference during the OnShow event handler and up until the OnHide event handler returns.


Sign in to add a comment
Powered by Google Project Hosting