Mercurial > dwindows
diff dw.h @ 2974:fffb4904c90b
Mac: Initial support for dw_html_javascript_add() and DW_SIGNAL_HTML_MESSAGE
for callbacks into native code. Code for iOS next...
Then GTK3/4, Windows and Android in that order.
Also implemented simple rawhtml tests in the test programs.
C++: Added HTML class support for the message callbacks.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 24 Mar 2023 11:39:24 +0000 |
parents | afe9c20294ca |
children | ae4d6856b983 |
line wrap: on
line diff
--- a/dw.h Tue Mar 21 00:41:25 2023 +0000 +++ b/dw.h Fri Mar 24 11:39:24 2023 +0000 @@ -108,6 +108,7 @@ #define DW_SIGNAL_TREE_EXPAND "tree-expand" #define DW_SIGNAL_HTML_CHANGED "html-changed" #define DW_SIGNAL_HTML_RESULT "html-result" +#define DW_SIGNAL_HTML_MESSAGE "html-message" /* status of menu items */ #define DW_MIS_ENABLED 1 @@ -1659,6 +1660,7 @@ _DW_EVENT_COLUMN_CLICK, /* Internal message for (container) column clicked */ _DW_EVENT_HTML_RESULT, /* Internal message for HTML javascript result */ _DW_EVENT_HTML_CHANGED, /* Internal message for HTML status changed */ + _DW_EVENT_HTML_MESSAGE, /* Internal message for HTML javascript message */ _DW_EVENT_MAX } _DW_EVENTS; #endif @@ -2235,6 +2237,7 @@ int API dw_html_raw(HWND hwnd, const char *string); int API dw_html_url(HWND hwnd, const char *url); int API dw_html_javascript_run(HWND hwnd, const char *script, void *scriptdata); +int API dw_html_javascript_add(HWND hwnd, const char *name); HWND API dw_html_new(unsigned long id); char * API dw_clipboard_get_text(void); void API dw_clipboard_set_text(const char *str, int len);