# HG changeset patch # User mhessling@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1159224168 0 # Node ID d0e1db21e859005e384d3b94b6e6564e681e8e65 # Parent 2a65fac2405312726d1b08439fa52cb6f42e12a3 Add calendar widget diff -r 2a65fac24053 -r d0e1db21e859 dw.def --- a/dw.def Mon Sep 25 22:41:03 2006 +0000 +++ b/dw.def Mon Sep 25 22:42:48 2006 +0000 @@ -266,3 +266,7 @@ dw_html_action @471 dw_html_raw @472 dw_html_url @473 + + dw_calendar_new @480 + dw_calendar_set_date @481 + dw_calendar_get_date @482 diff -r 2a65fac24053 -r d0e1db21e859 dwtest.c --- 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... */ diff -r 2a65fac24053 -r d0e1db21e859 dww.def --- a/dww.def Mon Sep 25 22:41:03 2006 +0000 +++ b/dww.def Mon Sep 25 22:42:48 2006 +0000 @@ -166,6 +166,7 @@ dw_menu_item_set_check @283 dw_menu_popup @284 dw_menu_destroy @285 + dw_menu_delete_item @286 dw_pointer_query_pos @290 dw_pointer_set_pos @291 @@ -263,4 +264,8 @@ dw_html_action @471 dw_html_raw @472 dw_html_url @473 - + + dw_calendar_new @480 + dw_calendar_set_date @481 + dw_calendar_get_date @482 +