diff dwtest.c @ 1795:9304241b7b33

Added new dw_window_set_focus() function and attempted to fix... Intial focus after a subsequent dw_window_show() on Mac.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 24 Sep 2012 23:24:25 +0000
parents ed8851658015
children 9fb8339ae458
line wrap: on
line diff
--- a/dwtest.c	Mon Aug 13 06:18:30 2012 +0000
+++ b/dwtest.c	Mon Sep 24 23:24:25 2012 +0000
@@ -1766,6 +1766,9 @@
     dw_notebook_page_set_text( notebook, notebookpage9, "thread/event");
     thread_add();
 
+    /* Set the default field */
+    dw_window_default(mainwindow, copypastefield);
+    
     dw_signal_connect(mainwindow, DW_SIGNAL_DELETE, DW_SIGNAL_FUNC(exit_callback), DW_POINTER(mainwindow));
     timerid = dw_timer_connect(2000, DW_SIGNAL_FUNC(timer_callback), 0);
     dw_window_set_size(mainwindow, 640, 550);