comparison dw.h @ 618:a431ee5e049f

Added dw_menu_item_set_state() to set checked status of menu item and ability to enable/disable menu items. dw_menu_item_set_check() is deprecated
author mhessling@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 06 Apr 2008 00:35:28 +0000
parents f7d318cffc3e
children 7bdb2a58c51d
comparison
equal deleted inserted replaced
617:4d1d9aeb0bbc 618:a431ee5e049f
46 #define DW_SIGNAL_SET_FOCUS "set-focus" 46 #define DW_SIGNAL_SET_FOCUS "set-focus"
47 #define DW_SIGNAL_VALUE_CHANGED "value_changed" 47 #define DW_SIGNAL_VALUE_CHANGED "value_changed"
48 #define DW_SIGNAL_SWITCH_PAGE "switch-page" 48 #define DW_SIGNAL_SWITCH_PAGE "switch-page"
49 #define DW_SIGNAL_COLUMN_CLICK "click-column" 49 #define DW_SIGNAL_COLUMN_CLICK "click-column"
50 #define DW_SIGNAL_TREE_EXPAND "tree-expand" 50 #define DW_SIGNAL_TREE_EXPAND "tree-expand"
51
52 /* status of menu items */
53 #define DW_MIS_ENABLED 1
54 #define DW_MIS_DISABLED (1 << 1)
55 #define DW_MIS_CHECKED (1 << 2)
56 #define DW_MIS_UNCHECKED (1 << 3)
51 57
52 #if defined(__OS2__) || defined(__WIN32__) || defined(__MAC__) || defined(WINNT) || defined(__EMX__) 58 #if defined(__OS2__) || defined(__WIN32__) || defined(__MAC__) || defined(WINNT) || defined(__EMX__)
53 /* OS/2, Windows or MacOS */ 59 /* OS/2, Windows or MacOS */
54 60
55 #if (defined(__IBMC__) || defined(_System)) && !defined(API) 61 #if (defined(__IBMC__) || defined(_System)) && !defined(API)
1164 #if 0 1170 #if 0
1165 TBD 1171 TBD
1166 void API dw_menu_delete_item(HMENUI menu, unsigned long id); 1172 void API dw_menu_delete_item(HMENUI menu, unsigned long id);
1167 #endif 1173 #endif
1168 void API dw_menu_item_set_check(HMENUI menu, unsigned long id, int check); 1174 void API dw_menu_item_set_check(HMENUI menu, unsigned long id, int check);
1175 void API dw_menu_item_set_state( HMENUI menux, unsigned long id, unsigned long state);
1169 void API dw_menu_popup(HMENUI *menu, HWND parent, int x, int y); 1176 void API dw_menu_popup(HMENUI *menu, HWND parent, int x, int y);
1170 void API dw_menu_destroy(HMENUI *menu); 1177 void API dw_menu_destroy(HMENUI *menu);
1171 void API dw_pointer_query_pos(long *x, long *y); 1178 void API dw_pointer_query_pos(long *x, long *y);
1172 void API dw_pointer_set_pos(long x, long y); 1179 void API dw_pointer_set_pos(long x, long y);
1173 void API dw_window_function(HWND handle, void *function, void *data); 1180 void API dw_window_function(HWND handle, void *function, void *data);