Mercurial > dwindows
diff dwtest.c @ 600:d0e1db21e859
Add calendar widget
author | mhessling@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 25 Sep 2006 22:42:48 +0000 |
parents | 420c6c94abc7 |
children | 489a684af1bb |
line wrap: on
line diff
--- a/dwtest.c Mon Sep 25 22:41:03 2006 +0000 +++ b/dwtest.c Mon Sep 25 22:42:48 2006 +0000 @@ -772,12 +772,18 @@ void buttons_add(void) { - HWND buttonsbox,abutton1,abutton2; + HWND buttonsbox,abutton1,abutton2,cal,calbox; /* create a box to pack into the notebook page */ buttonsbox = dw_box_new(BOXVERT, 2); dw_box_pack_start( notebookbox5, buttonsbox, 25, 200, TRUE, TRUE, 0); dw_window_set_color(buttonsbox, DW_CLR_RED, DW_CLR_RED); + + calbox = dw_box_new(DW_HORZ, 0); + dw_box_pack_start(notebookbox5, calbox, 500, 200, TRUE, TRUE, 1); + cal = dw_calendar_new(100); + dw_box_pack_start(calbox, cal, 0, 0, FALSE, FALSE, 0); + dw_calendar_set_date(cal, 2001, 1, 1); /* * Create our file toolbar boxes... */