Skip to main content

TcxCustomImage.LoadFromFile Method

Displays the Open dialog.

Declaration

procedure LoadFromFile;

Remarks

Call the LoadFromFile procedure to display the Open dialog that allows users to load a supported image file.

VCL Editors Library: Different Skin Examples

You can use the Properties.CustomFilter property to configure the dialog’s file filter.

A user can click the Load… item in the editor context menu to open the Image Editor dialog:

VCL Editors Library: Display the "Image Editor" Dialog

The Load… context menu item is visible only if the pmiLoad flag is present in the Properties.PopupMenuLayout.MenuItems property.

Create a Custom Open File Dialog

The OpenFileDialogFormClass global variable specifies the active Open dialog form class (as a class-reference).

To replace the predefined Open dialog, derive a form class from TdxfrmOpenFileDialog and assign the created class to the OpenFileDialogFormClass global variable.

See Also