Mercurial > dwindows
comparison os2/dw.c @ 594:af25ea2dc5b3
Add dummy calendar widget. Need to simulate one.4?\002?\007
author | mhessling@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 25 Sep 2006 22:16:42 +0000 |
parents | 4df2d1639005 |
children | b4cb30f47a97 |
comparison
equal
deleted
inserted
replaced
593:d3871f747160 | 594:af25ea2dc5b3 |
---|---|
9541 } | 9541 } |
9542 } | 9542 } |
9543 } | 9543 } |
9544 | 9544 |
9545 | 9545 |
9546 | |
9547 /* | |
9548 * Create a new static text window (widget) to be packed. | |
9549 * **** temporary calendar ***** | |
9550 * Parameters: | |
9551 * text: The text to be display by the static text widget. | |
9552 * id: An ID to be used with dw_window_from_id() or 0L. | |
9553 */ | |
9554 HWND API dw_calendar_new(ULONG id) | |
9555 { | |
9556 char *text = "a calendar"; | |
9557 WindowData *blah = calloc(sizeof(WindowData), 1); | |
9558 HWND tmp = WinCreateWindow(HWND_OBJECT, | |
9559 WC_STATIC, | |
9560 text, | |
9561 WS_VISIBLE | SS_TEXT, | |
9562 0,0,2000,1000, | |
9563 NULLHANDLE, | |
9564 HWND_TOP, | |
9565 id, | |
9566 NULL, | |
9567 NULL); | |
9568 blah->oldproc = WinSubclassWindow(tmp, _textproc); | |
9569 WinSetWindowPtr(tmp, QWP_USER, blah); | |
9570 dw_window_set_font(tmp, DefaultFont); | |
9571 dw_window_set_color(tmp, DW_CLR_BLACK, DW_CLR_PALEGRAY); | |
9572 return tmp; | |
9573 } | |
9574 | |
9575 void API dw_calendar_set_date( HWND window, int year, int month, int day ) | |
9576 { | |
9577 } | |
9578 void API dw_calendar_get_date( HWND window, int *year, int *month, int *day ) | |
9579 { | |
9580 *year = *month = *day = 0; | |
9581 } |