The property specifies whether the width and height of the picture are set to their original values.
Button and Bitmap controls
PowerBuilder dot notation:
dw_control.Object.controlname.OriginalSize
Describe and Modify argument:
"controlname.OriginalSize { = ‘value’} "
Parameter |
Description |
---|---|
controlname |
The control for which you want to set the value. |
value |
A string specifying whether the control’s image is set to its original size. Values are:
|
Select the control and then set the value in the Properties view, General tab, Original Size check box.
The OriginalSize property takes a boolean value. The following line sets the OriginalSize property to false:
dw_1.Object.p_empphoto.originalsize="false"
You should not try to change the width or height of a picture control when OriginalSize is set to true, because it can lead to unexpected behavior.
dw_1.Modify("p_empphoto.originalsize='true'")
dw_1.Modify("p_product.originalsize='false'")
dw_1.Modify("p_product.height='250'")
dw_1.Modify("p_product.width='250'")