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

TdxFilePreviewControlBasedHandler.CreateControl(string) Method

Creates a control to be placed in the preview pane.

#Declaration

Delphi
function CreateControl(const AFileName: string): TWinControl; virtual; abstract;

#Parameters

Name Type Description
AFileName string

The full path to the focused file.

#Returns

Type Description
TWinControl

The created control.

#Remarks

You should override this function in a TdxFilePreviewControlBasedHandler class descendant to place a custom control in the preview pane. This control should support files for which the preview handler is registered.

See Also