changeset 600:d0e1db21e859

Add calendar widget
author mhessling@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 25 Sep 2006 22:42:48 +0000
parents 2a65fac24053
children fe6490a13ed2
files dw.def dwtest.c dww.def
diffstat 3 files changed, 17 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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...
  */
--- 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
+