Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TBasedxPrintStyle.ShowStyleOptionsDlg Method

Opens a custom print style dialog.

#Declaration

Delphi
function ShowStyleOptionsDlg: Boolean; virtual;

#Returns

Type
Boolean

#Remarks

In the TBasedxPrintStyle‘s descendent, the ShowStyleOptionsDlg method is intended for displaying a custom print style dialog.

A custom print style dialog can be open from within the Page Setup dialog (button Options…). The ShowStyleOptionsDlg method is called when an end-user clicks the Options… button.

In built-in print styles – TBasedxReportLink and TdxPSPrintStyle – the button is disabled. To enable it, return True in the overridden HasStyleOptionsDlg method.

The ShowStyleOptionsDlg method must return True to update print style settings; otherwise, changes will be discarded.

To learn how to implement the ShowStyleOptionsDlg and HasStyleOptionsDlg methods in a custom print style, refer to the How to Create Custom Print Styles help topic.

See Also