TdxFilePreviewControlBasedHandler Class
The file preview handler.
Declaration
TdxFilePreviewControlBasedHandler = class abstract(TdxFilePreviewCustomHandler)
Remarks
This class allows you to create a control in the preview pane and display file content in it.
The TdxFilePreviewControlBasedHandler class members allow you to do the following:
Initialize the preview handler (Initialize).
Enable or disable the preview handler for different file extensions (Register and Unregister).
Obtain the full path to the file for which the preview is displayed (FileName).
Create a control in the preview pane (CreateControl).
Do not use this class directly. Inherit a class from the TdxFilePreviewControlBasedHandler class and override the Initialize and CreateControl functions to create a custom file preview handler. Call the created preview handler’s Register procedure before the dialog is invoked to enable the custom preview for a file extension. If the preview handler is no longer needed, you can call the Unregister procedure to disable it.