Contents - Index - Previous - Next


SavePictureDialog method




Declaration
function SavePictureDialog(X, Y: Integer): Boolean;

Description

Displays the "Save Picture" dialog box to allow the user to specify a path and file name to save an image from the current document.

The X and Y parameters are the pixel coordinates of the mouse pointer in the client area of the control. The X and Y parameters may be obtained in a mouse event handler, which supplies the mouse coordinates as the X and Y parameters of the method call. (In case you connect the SavePictureDialog method to a menu item of the PopupMenu property, you may obtain the mouse coordinates in the OnContextPopup event of the control).

The method is useful when the control is in Browse mode.

Returns True on success. Returns False on failure.