Styles Property



 
The Styles property contains the window styles of the dialog.


Syntax

    SKHtmlDialog.Styles [=dword]
Possible Values
    DWORD value that specifies or retrieves the styles.

    The property is read/write.
Remarks
    Please note that Javascript in IE9 cannot handle the hexadecimal values any longer and you need to use the decimal values. If you need to create a dialog that uses more than one value you have to do the Or-function with the help of a calculator.

    Possible window styles are:

    WS_OVERLAPPED = 0 (= 0x00000000)
    WS_POPUP = 2147483648 (= 0x80000000)
    WS_CHILD = 1073741824 (= 0x40000000)
    WS_MINIMIZE = 536870912 (= 0x20000000)
    WS_VISIBLE = 268435456 (= 0x10000000)
    WS_DISABLED = 134217728 (= 0x08000000)
    WS_CLIPSIBLINGS = 67108864 (= 0x04000000)
    WS_CLIPCHILDREN = 33554432 (= 0x02000000)
    WS_MAXIMIZE = 16777216 (= 0x01000000)
    WS_CAPTION = 12582912 (= WS_BORDER | WS_DLGFRAME)
    WS_BORDER = 8388608 (= 0x00800000)
    WS_DLGFRAME = 4194304 (= 0x00400000)
    WS_VSCROLL = 2097152 (= 0x00200000)
    WS_HSCROLL = 1048576 (= 0x00100000)
    WS_SYSMENU = 524288 (= 0x00080000)
    WS_THICKFRAME = 262144 (= 0x00040000)
    WS_GROUP = 131072 (= 0x00020000)
    WS_TABSTOP = 65536 (= 0x00010000)
    WS_MINIMIZEBOX = 131072 (= 0x00020000)
    WS_MAXIMIZEBOX = 65536 (= 0x00010000)

    WS_TILED = WS_OVERLAPPED
    WS_ICONIC = WS_MINIMIZE
    WS_SIZEBOX = WS_THICKFRAME
    WS_TILEDWINDOW = WS_OVERLAPPEDWINDOW
    WS_OVERLAPPEDWINDOW = 13565952 (= WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX)
    WS_POPUPWINDOW = 2156396544 (= WS_POPUP | WS_BORDER | WS_SYSMENU)
    WS_CHILDWINDOW = WS_CHILD

    See Window Styles (MSDN) for further information.
Examples
    The following example uses the Style property to create a dialog with title bar and border.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    var MY_WND_STYLE = 12582912; //WS_OVERLAPPED | WS_CAPTION
    mydialog = SiteKiosk.SiteKioskUI.CreateHTMLDialog();
    mydialog.URL = "http://www.myaddress.com";
    mydialog.Styles = MY_WND_STYLE;
    mydialog.ShowDialog();
    </SCRIPT>
    

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

Back to top