SKFileIcon ActiveX Control



 
This control displays the icons of files.


Members Table

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

    Members
    Properties Description
    DrawMode Draw mode.
    Index Draw the icon with this index.
    Opened If the opened icon is drawn.
    Path Full path of the icon file.
    Selected If the selected icon is drawn.
    Small If the small icon is drawn.
    Text Optional icon text.
    Valid If the icon is valid.
    Events Description
    OnClick Fires when the icon is clicked.

Remarks
    This ActiveX control is available in the form of scripts that can be used in combination with SiteKiosk. Use the SKFileIcon control to display the icons of files. 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
    802B4DFC-E0AD-40DC-BFC2-EF5CB99E1291
Examples
    The following example displays the icon of the sitekiosk.exe file and changes it when the links are clicked.

    <html>
    <head>
    </head>
    <body>
    <OBJECT ID="SKFileIcon" width="16" height="16"
    CLASSID="CLSID:802B4DFC-E0AD-40DC-BFC2-EF5CB99E1291">
      <PARAM NAME="Text" VALUE="Optional text">
      <PARAM NAME="Path" VALUE="c:\programs\sitekiosk\sitekiosk.exe">
      <PARAM NAME="Small" VALUE="0">
      <PARAM NAME="Opened" VALUE="1">
      <PARAM NAME="Selected" VALUE="0">
    </OBJECT>
    <br><br>
    <a href="javascript:ShowTextProp()">Show Text property</a>
    <br><br>
    <a href="javascript:Selected()">Switch Selected property</a><br>
    <a href="javascript:Small()">Switch Small property</a><br>
    <a href="javascript:Opened()">Switch Opened property</a><br>
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SKFileIcon.Path = SiteKiosk.SiteKioskDirectory + "sitekiosk.exe";
    function ShowTextProp()
    {
       alert(SKFileIcon.Text);
    }
    function Selected()
    {
       SKFileIcon.Selected = !SKFileIcon.Selected;
    }
    function Small()
    {
       SKFileIcon.Small = !SKFileIcon.Small;
    }
    function Opened()
    {
       SKFileIcon.Opened = !SKFileIcon.Opened;
    }
    </SCRIPT>
    </body>
    </html>
    

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

Back to top