NewWidth property (LEADDlgImage Control)

C++ Builder example

Delphi 4.0 example

 

Builder Syntax

L_UINT NewWidth

Delphi Syntax

NewWidth: L_UINT

Overview

Refer to Using Imaging Common Dialogs.

Remarks

Gets or sets the width value in the Resize and the CanvasResize dialog boxes.

Resize dialog box

The value set must not exceed the maximum set in the MaxNewWidth property. In addition, if you set DLG_RESIZE_MAINTAINASPECT in the DlgIFlags property before calling the ShowResizeDlg method you must be sure that the NewWidth and NewHeight properties have the same aspect ratio as the OriginalWidth and OriginalHeight properties. Otherwise, both the NewWidth and NewHeight property values will be replaced with the OriginalWidth and OriginalHeight property values respectively. If you set this property to 0 the dialog's initial width value will equal the value of the OriginalWidth property.

CanvasResize dialog box

It represents the new width entered by the user.

See Also

Elements:

ShowResizeDlg method, ShowCanvasResizeDlg method.

Topics:

Imaging Common Dialogs: Properties, Methods, and Events