comparison dwtest.c @ 1227:b54d37938d61

Fix for the status popup menu not functioning when a different notebook tab is visible. Should try to fix this issue in the library itself but for now this will work.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 10 Oct 2011 20:23:52 +0000
parents cfe8608253a8
children 75a773cdb626
comparison
equal deleted inserted replaced
1226:d865c29fc06a 1227:b54d37938d61
854 HWND menuitem = dw_menu_append_item(hwndMenu, "~Quit", 1019, 0L, TRUE, FALSE, DW_NOMENU); 854 HWND menuitem = dw_menu_append_item(hwndMenu, "~Quit", 1019, 0L, TRUE, FALSE, DW_NOMENU);
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 /* Use the toplevel window handle here.... because on the Mac..
860 * using the control itself, when a different tab is active
861 * the control is removed from the window and can no longer
862 * handle the messages.
863 */
864 dw_menu_popup(&hwndMenu, mainwindow, (int)px, (int)py);
860 return TRUE; 865 return TRUE;
861 } 866 }
862 867
863 void text_add(void) 868 void text_add(void)
864 { 869 {