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

TcxCustomImage.LoadFromFile Method

Invokes the Open dialog.

#Declaration

Delphi
procedure LoadFromFile;

#Remarks

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

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 invoke the Image Editor dialog:

VCL Editors Library: Invoke 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

Inherit a form class from TdxfrmOpenFileDialog and assign a reference to the created class to the OpenFileDialogFormClass global variable to replace the built-in Open dialog form with a custom implementation.

See Also