Mercurial > dwindows
comparison 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 |
comparison
equal
deleted
inserted
replaced
599:2a65fac24053 | 600:d0e1db21e859 |
---|---|
770 } | 770 } |
771 | 771 |
772 | 772 |
773 void buttons_add(void) | 773 void buttons_add(void) |
774 { | 774 { |
775 HWND buttonsbox,abutton1,abutton2; | 775 HWND buttonsbox,abutton1,abutton2,cal,calbox; |
776 | 776 |
777 /* create a box to pack into the notebook page */ | 777 /* create a box to pack into the notebook page */ |
778 buttonsbox = dw_box_new(BOXVERT, 2); | 778 buttonsbox = dw_box_new(BOXVERT, 2); |
779 dw_box_pack_start( notebookbox5, buttonsbox, 25, 200, TRUE, TRUE, 0); | 779 dw_box_pack_start( notebookbox5, buttonsbox, 25, 200, TRUE, TRUE, 0); |
780 dw_window_set_color(buttonsbox, DW_CLR_RED, DW_CLR_RED); | 780 dw_window_set_color(buttonsbox, DW_CLR_RED, DW_CLR_RED); |
781 | |
782 calbox = dw_box_new(DW_HORZ, 0); | |
783 dw_box_pack_start(notebookbox5, calbox, 500, 200, TRUE, TRUE, 1); | |
784 cal = dw_calendar_new(100); | |
785 dw_box_pack_start(calbox, cal, 0, 0, FALSE, FALSE, 0); | |
786 dw_calendar_set_date(cal, 2001, 1, 1); | |
781 /* | 787 /* |
782 * Create our file toolbar boxes... | 788 * Create our file toolbar boxes... |
783 */ | 789 */ |
784 buttonboxperm = dw_box_new( BOXVERT, 0 ); | 790 buttonboxperm = dw_box_new( BOXVERT, 0 ); |
785 dw_box_pack_start( buttonsbox, buttonboxperm, 25, 0, FALSE, TRUE, 2 ); | 791 dw_box_pack_start( buttonsbox, buttonboxperm, 25, 0, FALSE, TRUE, 2 ); |