SiteKiosk Documentation
One Step Back

SKAnimateControl ActiveX Control




The SKAnimateControl ActiveX control can be used to display small repeating animations within SiteKiosk skins. It was designed especially for displaying a busy animation. All animation frames must have the same dimensions and have to be assembled in a single image file side by side. For another example, please see the busy-animation source file of SiteKiosk's default browser skin.


Members Table

    The following table lists the members provided by the SKAnimateControl ActiveX control.

    Members
    PropertiesDescription
    BackgroundColorBackground / transparent color.
    ImageCountNumber of animation frames.
    ImageFileAbsolute / relative path to the animation's source image.
    ImageWidthWidth of a single animation image.
    SrcAlphaValue for the alpha channel.
    TimerIntervalDelay between two animation frames.
    TransparentIf transparency is to be used.
    UseAlphaIf alpha channel is to be used.
    MethodsDescription
    ResetResets the animation.
    StartStarts the animation.
    StopStops the animation.
    EventsDescription
    ClickFires when the animation is clicked.
    DblClickFires when the animation is double clicked.
    ImageChangedFires when the image changed.
    MouseDownFires on pressed mouse button.
    MouseMoveFires when the mouse moves over the animation.
    MouseUpFires on mouse button release.

Remarks
    This ActiveX control is available in the form of scripts that can be used in combination with SiteKiosk. Use the SKAnimateControl to examine or modify the display of animated images.
    To initialize the ActiveX control use the OBJECT tag and, in particular, the classID to identify the control. Set the initial object properties between the opening and closing OBJECT tags with PARAM tags. At a later point in time it will also be possible to access/modify these properties by means of scripts.
CLSID
    D061BD69-BEDF-4A1C-B890-9D6E784CA25E
Examples
    The following example uses the Start, Stop and Reset methods of the SKAnimateControl ActiveX control. Note that the path to the image is absolute in relation to the SiteKiosk folder.

    <html>
    <head>
    <SCRIPT TYPE="text/javascript">
    function startAnim()
    {
    	document.all["id_SKAnimateControl"].Start();
    }
    function stopAnim()
    {
    	document.all["id_SKAnimateControl"].Stop();
    }
    function resetAnim()
    {
    	document.all["id_SKAnimateControl"].Reset();
    }
    </SCRIPT>
    </head>
    <body>
    <OBJECT id="id_SKAnimateControl" style="width:65px; height:65px; 
    border-width:0px; margin-right:0px; margin-bottom:5px; 
    margin-top:5px; " 
    classid="CLSID:D061BD69-BEDF-4A1C-B890-9D6E784CA25E">
    	<PARAM NAME="ImageFile" VALUE=
    	"skins\default\img\anilogo.png">
    	<PARAM NAME="ImageWidth" VALUE="65">
    	<PARAM NAME="TimerInterval" VALUE="25">
    	<PARAM NAME="UseAlpha" VALUE="0">
    	<PARAM NAME="SrcAlpha" VALUE="0">
    	<PARAM NAME="BackgroundColor" VALUE="0">
    	<PARAM NAME="Transparent" VALUE="0">
    </OBJECT>
    <div onclick="startAnim()">ClickStart!</div>
    <div onclick="stopAnim()">ClickStop!</div>
    <div onclick="resetAnim()">ClickReset!</div>
    </body>
    </html>

Applies to
    SiteKiosk v5.0 (and later versions).

Back to topVolver arriba

© 1997-2011 PROVISIO - Aventura, EEUU - Muenster, Alemania
Sitekiosk.es - Grupo24®, Madrid, España -