Skip to main content

ShowContainerCustomizationDialog(TdxSpreadSheetContainer,Integer) Method

Invokes the “Customize Object“ dialog for a specified floating container.

Declaration

function ShowContainerCustomizationDialog(AContainer: TdxSpreadSheetContainer; AActivePage: Integer = 0): Boolean;

Parameters

Name Type
AContainer TdxSpreadSheetContainer
AActivePage Integer

Returns

Type
Boolean

Remarks

Call this global function and pass a target floating container as the AContainer parameter to invoke the “Customize Object” dialog for the container.

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

AActivePage Value

The Customize Object Dialog Shows

-1 (or less)

The Size page if the dialog is invoked for a picture or shape container.

The Text page if the dialog is invoked for a text box or comment container.

0 (default)

The Size page for all floating container types. A click on the “Customize Object…” menu item in the container context menu invokes the dialog with the same active page.

1

The Properties page.

2

The Fill page.

3

The Line page.

4

The Text page for a text box or comment container.

The Line page for a shape or picture container.

5 (or greater)

The Text Box page for a text box or comment container.

The Line page for a shape or picture container.

The ShowContainerCustomizationDialog global function returns True if an OK button click or the Enter keystroke closes the “Customize Object” dialog; otherwise – False.

See Also