MessageBox Visual Designer

MessageBox Visual Designer

This wizard can generated messagebox calling code through visual designing. Both Delphi/C++Builder are supported. It's enabled when current window is source editor.

Please move cursor to required position before use this wizard. The dialog of this wizard is as below:

- Show Icon: You can choose which icon to display in the message dialog.

- Dialog Title: Title of message dialog. If 'Title as Variable' was selected, entered title text will be treated as a variable, otherwise as string. You can select some useful titles in dropdown list.

- Text Information: The text displayed on message dialog. Multi-line text is supported. If 'Text as Variable' was selected, entered text will be treated as a variable.

- Default Button: You can specify which button is default when the message dialog displayed.

- Extended Style: Whether show at topmost.

- Dialog Button: You can specify the buttons needed in the message dialog.

- Return Value: If the message dialog need return values, the codes will be generated to process the values. such as if, if...else..., case.

- Procedure to Use: Which procedure will be used for implemetation. Both MessageBox and MessageDlg supported.

- Use MessageBoxW: Use Unicode version API.

- Uses Handle as Parent: If this was selected, Handle will be the first parameter in MessageBox API, otherwise 0 will be used.

- Preview: Preview the designed message dialog.

- User Templates: You can save the message dialog contents to templates for loading. The last contents will be saved to 'Auto Saved' template automatically.

MessageBox code will be generated and inserted into current cursor's position after OK is clicked. Line-wrap, auto indent are supported. Cursor will be put to right position after inserting.

Settings

The setting dialog of MessageBox Visual Designer is as below:

- Carriage Return: You can set the Carriage Return character for Delphi/C++Builder here.

- Delphi Code Settings: You can set indent count, auto wrap width and whether use PChar to convert strings, whether use Format to generate string, in Delphi.

- C++Builder Code Settings: You can set indent count, auto wrap width in C++Builder, and whether put { at the end of a line.

- Wordwrap Mode: If 'Wordwrap by Line Width' was selected, text will be arranged by the width, otherwise uses entered format.

- Automatically Load Settings of Last Time: When this was selected, the last template will be auto loaded when this wizard executing.

- Export£ºExport user template to file.

- Import: Import template from file.

Links

Basic Operation

CnWizards Settings

About CnWizards

Copyrights 2001-2025 CnPack Team