Syntax 2 For animation controls – PB Docs 126

Syntax 2 For animation controls

Description

Displays a specific frame in an AVI clip in an animation control.

Controls

Animation controls

Syntax

Argument

Description

animationname

The name of animation control displaying
the AVI clip

s

A long value in the range 0 to 65,535
indicating the frame to display

Return Values

Integer. Returns 1 for success and -1
for failure.

Usage

Seek displays the specified frame. If you
specify a value that is greater than the number of frames in the
clip, Seek displays the last frame in the clip
and returns 1. If you specify a value that is not in the specified
range, Seek does nothing and returns -1. If the
animation was playing, Seek always triggers the
Stop event.

Examples

This code in a button’s clicked event displays
the frame specified by a number in a single line edit control, then
increments the number by one. Each click of the button advances
the clip by one frame:

See Also


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