Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

OriginalSize – PB Docs 125 – PowerBuilder Library

OriginalSize – PB Docs 125

OriginalSize property for PowerScript controls

Controls

Picture, PictureButton, PictureHyperLink, and Animation controls

Description

The OriginalSize property specifies whether the width and
height of the picture are set to their original values.

For Animation controls, it specifies whether the width and
height properties of the Animation control are set to the size of
the AVI clip.

In the painter, if you use the mouse to resize the control
or if you set the Width or Height properties on the Position tab,
the OriginalSize property becomes disabled and the check box becomes
unchecked.

Usage

In a painter

proc.png To set the picture to its original size:

  1. Select the OriginalSize check box on the
    General page of the control’s Properties view.

In scripts

The OriginalSize property takes a boolean value. The following
line sets the OriginalSize property to 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. In this example, the OriginalSize
property is checked and set to false before the control
is doubled in size:

The SetRedraw function must be called only
when the image is very large. Before performing multiple resize
operations of large JPEG images, set the name of the picture to
an empty string temporarily to avoid unnecessary lengthy recompilations.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x