changeset 607:b4cb30f47a97

dw_calendar_set_date() sets the text of the dummy calendar
author mhessling@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 28 Sep 2006 01:42:32 +0000
parents df01183257a0
children e49524bc2f07
files os2/dw.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 )
 {