StaticText ActiveX Control

Static text control including a fixed-width single line and a text ellipsis. Text that exceeds the horizontal width of the control will be replaced by three dots.

Members Table

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

    Properties Description
    BackColor Background color of the text.
    BackStyle Layout style of the text.
    Font Font of the text.
    ForeColor Color of the text.
    Text Text to be displayed.

    This ActiveX control is available in the form of scripts that can be used in combination with SiteKiosk. Use the StaticText control to examine or modify the display of texts in the task bar. The control also cuts the text, if it is too long, for example, when several windows are open and represented in the task bar.
    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.
    Please note that the Font property is an IFontDisp interface. Therefore, access to the properties of the interface is possible, as shown in the example below.
    The following example creates a StaticText ActiveX Control to demonstrate the possibilities. In this case the initial text will be changed after 2 seconds.

    <OBJECT id="id_StaticText" width="170" height="12" 
    style="padding:0; margin:0; display:inline;" 
    	<PARAM NAME="BackStyle" VALUE="0">
    	<PARAM NAME="BackColor" VALUE="0">
    	<PARAM NAME="FontName" VALUE="Times New Roman">
    	<PARAM NAME="FontSize" VALUE="8.00">
    	<PARAM NAME="FontBold" VALUE="0">
    	<PARAM NAME="FontItalic" VALUE="0">
    	<PARAM NAME="FontUnderline" VALUE="0">
    	<PARAM NAME="FontWeight" VALUE="500">
    	<PARAM NAME="ForeColor" VALUE="0">
    	<PARAM NAME="Text" VALUE="Default text if necessary">
    <SCRIPT TYPE="text/javascript">
    function chText()
       mysentence = "This sentence is too long and will be changed.";
       document.all['id_StaticText'].Text = mysentence;
    window.setTimeout("chText()", 2000);

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

Back to top