Skip to main content

Create(IdxDialogOwner,Integer,Integer) Constructor

Creates a “Format Cells“ dialog.

Declaration

constructor Create(AOwner: IdxDialogOwner; AActivePage: Integer = -1; ADummy: Integer = 0); reintroduce; virtual;

Parameters

Name Type
AOwner IdxDialogOwner
AActivePage Integer
ADummy Integer

Remarks

Call this constructor and pass a target control as the AOwner parameter.

The AActivePage parameter value defines which of the “Format Cells” dialog pages is visible when the dialog appears. The following table lists available parameter values and their effects.

AActivePage Value The Format Cells Dialog Shows
-2 (or less) The Number page.
-1 (default) The Number page if the dialog is invoked for the first time at runtime. Otherwise – the dialog shows the same page that was active when the dialog was closed for the last time.
0 The Number page.
1 The Alignment page.
2 The Font page.
3 The Border page.
4 The Fill page.
5 (or greater) The Protection page if the “Format Cells” dialog is created for a spreadsheet control.

The ShowFormatCellsDialog global procedure calls this constructor, the Initialize and Load procedures to invoke the “Format Cells” dialog for a target worksheet and import style settings from the current cell selection.

Note

The Dummy optional parameter value is always ignored. This parameter is intended only to distinguish the constructor in C++Builder code, since in C++ all constructors must have a name identical to the class name.

See Also