comparison dwtest.c @ 1224:cfe8608253a8

Return code of 0 from the button press callback on OS/2 was causing issues with the popup menu... the default handler was closing it apparently.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 10 Oct 2011 05:27:14 +0000
parents 10f5b8645975
children b54d37938d61
comparison
equal deleted inserted replaced
1223:1255ba41adad 1224:cfe8608253a8
855 long px, py; 855 long px, py;
856 856
857 dw_signal_connect(menuitem, DW_SIGNAL_CLICKED, DW_SIGNAL_FUNC(exit_callback), (void *)mainwindow); 857 dw_signal_connect(menuitem, DW_SIGNAL_CLICKED, DW_SIGNAL_FUNC(exit_callback), (void *)mainwindow);
858 dw_pointer_query_pos(&px, &py); 858 dw_pointer_query_pos(&px, &py);
859 dw_menu_popup(&hwndMenu, window, (int)px, (int)py); 859 dw_menu_popup(&hwndMenu, window, (int)px, (int)py);
860 return 0; 860 return TRUE;
861 } 861 }
862 862
863 void text_add(void) 863 void text_add(void)
864 { 864 {
865 unsigned long depth = dw_color_depth_get(); 865 unsigned long depth = dw_color_depth_get();