RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TOpenPicture Class

TOpenPicture is the standard action for displaying the open picture dialog.

Pascal
TOpenPicture = class(TCommonDialogAction);
C++
class TOpenPicture : public TCommonDialogAction;

ExtActns

Add TOpenPicture to an action list to add a graphics file selection dialog to your application. Controls such as menu items and tool buttons linked to this action cause the application to display the open picture dialog when invoked. Use the OnAccept event to respond after the user selects a file name in the dialog or the OnCancel event to respond when the user cancels from the dialog. In the event handler, you can read the file name from the dialog specified by the Dialog property. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!