Description
The property specifies whether the width and height of the picture are set to their original values.
Applies to
Button and Bitmap controls
Syntax
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: True -- The image displays at its original size. False -- The image height and width can be set to other measurements. |
Usage
In the painter
Select the control and then set the value in the Properties view, General tab, Original Size check box.
In scripts
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.
Examples
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'")