# HG changeset patch # User mhessling@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1159407752 0 # Node ID b4cb30f47a97372abdd9a5ec76ba516d5ca63c54 # Parent df01183257a06aca079fc01a23949f339166700a dw_calendar_set_date() sets the text of the dummy calendar diff -r df01183257a0 -r b4cb30f47a97 os2/dw.c --- a/os2/dw.c Thu Sep 28 01:41:39 2006 +0000 +++ b/os2/dw.c Thu Sep 28 01:42:32 2006 +0000 @@ -1,4 +1,3 @@ -/* /* * Dynamic Windows: * A GTK like implementation of the PM GUI @@ -9553,7 +9552,7 @@ */ HWND API dw_calendar_new(ULONG id) { -char *text = "a calendar"; +char *text = "dummy calendar"; WindowData *blah = calloc(sizeof(WindowData), 1); HWND tmp = WinCreateWindow(HWND_OBJECT, WC_STATIC, @@ -9569,11 +9568,15 @@ WinSetWindowPtr(tmp, QWP_USER, blah); dw_window_set_font(tmp, DefaultFont); dw_window_set_color(tmp, DW_CLR_BLACK, DW_CLR_PALEGRAY); + WinSetWindowText(tmp, text); return tmp; } void API dw_calendar_set_date( HWND window, int year, int month, int day ) { + char tmp[30]; + sprintf( tmp, "%4.4d-%2.2d-%2.2d", year, month, day); + WinSetWindowText(window, tmp); } void API dw_calendar_get_date( HWND window, int *year, int *month, int *day ) {