diff dw.h @ 1924:c47a04d83b90

Added dw_mle_set_auto_complete() to enable MLE auto completion on supported platforms. Currently only Mac is supported, but may add Windows support soon.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 20 Apr 2017 09:57:15 +0000
parents 951356ced7d5
children 758f49e54566
line wrap: on
line diff
--- a/dw.h	Wed Oct 12 00:12:12 2016 +0000
+++ b/dw.h	Thu Apr 20 09:57:15 2017 +0000
@@ -1406,6 +1406,11 @@
 #define DW_DRAW_FULL       (1 << 1)
 #define DW_DRAW_NOAA       (1 << 2)
 
+/* MLE Completion flags */
+#define DW_MLE_COMPLETE_TEXT      1
+#define DW_MLE_COMPLETE_DASH      (1 << 1)
+#define DW_MLE_COMPLETE_QUOTE     (1 << 2)
+
 /* Macro for casting resource IDs to HICN */
 #define DW_RESOURCE(a) (a < 65536 ? (HICN)a : (HICN)0)
 
@@ -1606,6 +1611,7 @@
 void API dw_mle_set_visible(HWND handle, int line);
 void API dw_mle_set_editable(HWND handle, int state);
 void API dw_mle_set_word_wrap(HWND handle, int state);
+void API dw_mle_set_auto_complete(HWND handle, int state);
 int API dw_mle_search(HWND handle, char *text, int point, unsigned long flags);
 void API dw_spinbutton_set_pos(HWND handle, long position);
 void API dw_spinbutton_set_limits(HWND handle, long upper, long lower);