You are here: Getting Started > Wrapper Functions
LMD DialogPack
ContentsIndexHome
PreviousUpNext
Wrapper Functions

Wrapper functions are global methods included in JSDialog Pack that provide quick access to specific types of dialogs. These methods also allow JSDialog Pack to be a drop in replacement for the existing Dialogs unit. Providing many of the most popular MessageDlg and ShowMessage methods.

Below is the list of wrapper functions grouped by the base JSDialog Pack control they use. 

 

Table Columns 

  • Dialogs.pas - Replacement for a method that exists in the dialogs.pas unit.
  • Overloaded - Declared more than once with different parameters.

 

TJSDialog

The TJSDialog wrapper functions are declared in the JSDialogs.pas unit. 

 

Method Name 
Dialogs.pas 
Overloaded 
Description 
MessageDlg 
Yes 
Yes 
Method used to display a message dialog on screen. 
MessageDlgPos 
Yes 
Yes 
Method the same as MessageDlg except it also allows for the X and Y position of the dialog to be input. 
ShowMessage 
Yes 
Yes 
Method used to display a dialog that has no icon associated with it. 
ShowMessageFmt 
Yes 
No 
Method used to display a dialog with no icon that allows for specifying format strings to complete the dialogs content. 
ShowInfoMessage 
No 
Yes 
Displays a dialog with the Information icon. 
ShowErrorMessage 
No 
Yes 
Displays a dialog with the Error icon. 
ShowConfirmMessage 
No 
Yes 
Displays a dialog with the Confirmation icon. 
ShowWarningMessage 
No 
Yes 
Displays a dialog with the Warning icon. 
ShowExpandableMessage 
No 
Yes 
Displays a dialog with the expando section visible. 
ShowInfoTitleMessage 
No 
No 
Displays a dialog with the Information icon and both an instruction a content section. 
ShowErrorTitleMessage 
No 
No 
Displays a dialog with the Error icon and both an instruction a content section. 
ShowConfirmTitleMessage 
No 
No 
Displays a dialog with the Confirm icon and both an instruction a content section. 
ShowWarningTitleMessage 
No 
No 
Displays a dialog with the Warning icon and both an instruction a content section. 
TaskDialog 
Yes (Delphi 2009+) 
Yes 
Displays a dialog that accepts TaskDialog API specific constant values. For visible buttons and icons. 
TaskDialogEx 
Yes (Delphi 2009+) 
No 
Displays a dialog that accepts TaskDialog API specific constant values. For visible buttons and icons. 
VerifyMessage 
No 
Yes 
Displays a dialog with the verification section visible. 

 

TJSEditDialog

These functions are declared in the JSEditDialogs.pas unit. 

 

Method Name 
Dialogs.pas 
Overloaded 
Description 
InputBox 
Yes 
No 
Displays a dialog with an edit control visible. 
InputBoxEx 
No 
No 
Displays a dialog with an edit control visible. 
InputDate 
No 
No 
Displays a dialog with an date control visible. 
InputDateEx 
No 
No 
Displays a dialog with an date control visible. 
InputTime 
No 
No 
Displays a dialog with a time control visible. 
InputTimeEx 
No 
No 
Displays a dialog with a time control visible. 
InputCalendar 
No 
No 
Displays a dialog with a calendar control visible. 
InputCalendarEx 
No 
No 
Displays a dialog with a calendar control visible. 
InputQuery 
Yes 
No 
Displays a dialog with an edit control visible. 
InputQueryEx 
No 
No 
Displays a dialog with an edit control visible. 
InputCombo 
No 
Yes 
Displays a dialog with an combo box control visible. 
InputComboEx 
No 
Yes 
Displays a dialog with an combo box control visible. 
InputList 
No 
Yes 
Displays a dialog with an list box control visible. 
InputListEx 
No 
Yes 
Displays a dialog with an list box control visible. 

To use the dialogs included in JSDialogs within your application just make sure that the JSDialogs unit is declared after the Dialogs unit in each unit. This means that instead of using the Dialogs version of the method (such as MessageDlg) the JSDialogs version of the method will be used.

Name 
Description 
This topic outlines the available wrapper functions available for use with the TJSDialogSheet component.
 
Copyright © 2013 by LMD Innovative. All rights reserved.
Copyright © 2013 by LMD Innovative. All rights reserved.
What do you think about this topic? Send feedback!