Mercurial > dwindows
diff template/dw.c @ 2976:b40adda4a129
OS2/GTK2/Template: Add empty dw_html_javascript_add() functions.
OS/2 does not support HTML and GTK2 does not support a WebKit that will
allow DW_SIGNAL_HTML_MESSAGE, so implement failure functions.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 24 Mar 2023 17:28:21 +0000 |
parents | 0577a97fe36d |
children |
line wrap: on
line diff
--- a/template/dw.c Fri Mar 24 17:15:59 2023 +0000 +++ b/template/dw.c Fri Mar 24 17:28:21 2023 +0000 @@ -2396,6 +2396,20 @@ } /* + * Install a javascript function with name that can call native code. + * Parameters: + * handle: Handle to the HTML window. + * name: Javascript function name. + * Notes: A DW_SIGNAL_HTML_MESSAGE event will be raised with scriptdata. + * Returns: + * DW_ERROR_NONE (0) on success. + */ +int API dw_html_javascript_add(HWND handle, const char *name) +{ + return DW_ERROR_UNKNOWN; +} + +/* * Create a new HTML window (widget) to be packed. * Parameters: * id: An ID to be used with dw_window_from_id() or 0L.