CREATE MOVIE
PLBCMP GUI Only
The CREATE MOVIE statement initializes a MOVIE object variable. This object allows AVI formatted movies that are played in a specified window under Windows. The statement format is:
|
|
|
|
|
|
|
|
|
|
Where:
label
Optional. A Program Execution Label.
parent
Optional. A previously created WINDOW or PANEL object variable or pointer to a WINDOW or PANEL object on which the object is created.
movie
Required. The name of a previously defined MOVIE object variable or pointer to a MOVIE object.
pos
Required. The screen position of the object given as: {top}:{bottom}:{left}:{right}.
movie-name
Required. A Character String Variable or Literal providing the MOVIE name that is played.
property list
Optional. One or more of the object properties.
Flags Affected: NONE
Note the following:
For Windows, the movie must be in AVI format.
If {movie-name} is Null String, an open dialog is activated that allows the user to specify a movie to use.
If {movie-name} is not found during creation of the object, the runtime generates an O102 error.
The window size is very critical on the speed and accuracy of the display. If the movie must be resized on the fly from the original size, extra time is required, some frames are skipped, and overall jerkiness is noticed. The faster processors reduce this problem.
To start a MOVIE, left click within its defined screen boundaries. A second left click pauses the video. Another left click resumes the video play. A right mouse click stops the video and rewinds the file to the beginning.
If the optional {parent} parameter is not specified, the default window is used.
See Also: Example Code, CREATE, Object Output Instructions
![]() |