comparison os2/dw.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 b0bdec1b820c
children 7f549994b633
comparison
equal deleted inserted replaced
1794:97b1edb41d44 1795:9304241b7b33
11892 } 11892 }
11893 return (ulBuild); 11893 return (ulBuild);
11894 } 11894 }
11895 11895
11896 /* 11896 /*
11897 * Sets the current focus item for a window/dialog.
11898 * Parameters:
11899 * handle: Handle to the dialog item to be focused.
11900 * Remarks:
11901 * This is for use after showing the window/dialog.
11902 */
11903 void API dw_window_set_focus(HWND handle)
11904 {
11905 WinSetFocus(HWND_DESKTOP, handle);
11906 }
11907
11908 /*
11897 * Sets the default focus item for a window/dialog. 11909 * Sets the default focus item for a window/dialog.
11898 * Parameters: 11910 * Parameters:
11899 * window: Toplevel window or dialog. 11911 * window: Toplevel window or dialog.
11900 * defaultitem: Handle to the dialog item to be default. 11912 * defaultitem: Handle to the dialog item to be default.
11913 * Remarks:
11914 * This is for use before showing the window/dialog.
11901 */ 11915 */
11902 void API dw_window_default(HWND window, HWND defaultitem) 11916 void API dw_window_default(HWND window, HWND defaultitem)
11903 { 11917 {
11904 Box *thisbox = NULL; 11918 Box *thisbox = NULL;
11905 HWND box; 11919 HWND box;