@...ANIMATEBOX
DEFINE ANIMATEBOX
Creates an AnimateBox control.
  

An AnimateBox control is a window that displays an Audio-Video Interleaved (AVI) clip. An AVI clip is a series of bitmap frames like a movie. Animation controls can only display AVI clips that do not contain audio.

SYNTAX

Standard Window:

@ <nRow> ,<nCol> ANIMATEBOX <ControlName>
[ ID <
nId> ]
[ OF | PARENT | DIALOG <
ParentWindowName>]
WIDTH <
nWidth>
HEIGHT <
nHeight>
[ FILE <
cFileName> ]
[ AUTOPLAY ]
[ CENTER ]

[ INVISIBLE ]

[ TRANSPARENT ]
[ BACKCOLOR <BackColor> ]
[ NOBORDER ]
[ HELPID <
nHelpId> ]

Dialog Window:

REDEFINE ANIMATEBOX <ControlName>
ID <
nId>
[ OF | PARENT | DIALOG <
ParentWindowName>]
[ FILE <
cFileName> ]
[ AUTOPLAY ]
[ CENTER ]
[ TRANSPARENT ]
[ BACKCOLOR <BackColor> ]
[ HELPID <nHelpId> ]

Alternate Syntax:

DEFINE ANIMATEBOX <ControlName>

ROW <nRow>
COL <
nCol>
WIDTH <
nWidth>
HEIGHT <
nHeight>
[ FILE <
cFileName> ]
[ HELPID <
nHelpId> ]
[ TRANSPARENT < .T. | .F.> ]
[ BACKCOLOR <BackColor> ]
[ NOBORDER ]
[ AUTOPLAY < .T. | .F.> ]
[ CENTER < .T. | .F.> ]
[ INVISIBLE

END ANIMATEBOX


Related Commands:

OPEN ANIMATEBOX <ControlName> OF <ParentFormName> FILE <cFileName>
PLAY ANIMATEBOX <ControlName> OF <ParentFormName>
SEEK ANIMATEBOX <ControlName> OF <ParentFormName> POSITION <Frame>
STOP ANIMATEBOX <ControlName> OF <ParentFormName>
CLOSE ANIMATEBOX <ControlName> OF <ParentFormName>
DESTROY ANIMATEBOX <ControlName> OF <ParentFormName>


DESCRIPTION:
nRow, nCol
Position in the area of ??the window in pixels.
nWidth, nHeight
The desired size of the AnimateBox Control in pixels.
nId
The ID identifier this Control in Dialog Window
ControlName
A reference to the AnimateBox Control
ParentWindowName
A reference to the Parent Window.
cFileName
Specifies the AVI file name
nHelpId
The help topic identifier for this Control
Frame
Specifies at which frame the AnimateBox should starts
 
 
AUTOPLAY
Specifies that we want to auto play the AnimateBox control
CENTER
Specifies to Center the AnimateBox control
TRANSPARENT
Specifies that the background of a control should be transparent
NOBORDER
Specifies that No Border be drawed around the control


PROPERTIES:

·   Enabled
Set / Gets enabled state of a GUI object
·   Visible
Sets or gets visible a GUI object.
·   Row
Set / Gets row position of a GUI object.
·   Col   
Set / Gets column position of a GUI object.
·   Width
Set / Gets width of a GUI object.
·   Height
Set / Gets height of a GUI object.
·   ToolTip
Set / Gets GUI object's Tooltip text.
·   Cargo
Set / Gets user property 'Cargo' for controls
·   Name (R)
Retrieves the name of a GUI object.
·   Parent(D)
Set the name as character identifier of the parent window.
·   File (D)
Set the name an AVI file.
·   AutoPlay (D)
The control begins playing the AVI clip immediately after the AVI file or AVI resource is opened
·   Center(D)
Sets the width and height of the control based on the dimensions of a frame in the AVI clip
·   Transparent(D)
Display AVI files with a transparent background
·   HelpId(D)
Set the numeric help topic identifier of the control.
·   NoBorder
Sets style of control with no border

D: Available at control definition only
R: Read-Only

METHODS:

·   Show
Shows a GUI object
·   Hide
Hides a GUI object.
·   Redraw
Redraw a Control
·   Open (cFile)
Opens an AVI clip and displays its first frame in an control AnimateBox.
·   Play
Plays an AVI clip in an Control AnimateBox
·   Seek (nFrame)
Seek of frame control AnimateBox
·   Stop
Stops playing an AVI clip in an  Control AnimateBox
·   Close
Close for control AnimateBox
·   Release
Releases a control from memory.
·   SaveAs
Save Control as BitMap file.

EXAMPLE:

see demo in :
\Samples\Basic\AnimateDemo
\Samples\Basic\Dialog




MiniGui - (c) 2003-2016 Roberto Lopez
Extended version - MiniGUI Team (Grigory Filatov,Jacek Kubica,Janusz Pora)
Edited by Janusz Pora