Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Specifies how an image is sized to fit inside a control. Available at design time and run time.
Note
You must set the object's Picture property before setting Stretch; otherwise, the Stretch setting is disregarded. For more information, see Picture Property.
[Form.]Control.Stretch[= nType]
Return Value
nType
Specifies a numeric value indicating how to size an image to fit a control.The following table contains the values for nType.
nType
Description
0
Clip. The image is clipped to fit the control. (Default)
1
Isometric. The image resizes to fit the control while maintaining its original proportions.
2
Stretch. The image resizes to fit the control, but does not maintain its original proportions.
Remarks
Applies To: Image | OLE Bound Control | OLE Container Control
Example
CREATE FORM myForm NOWAIT
oform=_vfp.ActiveForm
oform.ADDOBJECT("image1","image")
this1=oform.image1
this1.picture= HOME()+"\graphics\bitmaps\assorted\beanie.bmp"
this1.stretch=0
this1.height = 50
this1.width = 50