Mercurial > dwindows
comparison dwtest.c @ 845:7331b7c9f1c9
Added listbox to the tree page... to test the tree view support...
which is used in the listbox for GTK3.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 29 Mar 2011 23:45:37 +0000 |
parents | 37cdfec6d3fa |
children | ca01c7d95b80 |
comparison
equal
deleted
inserted
replaced
844:5103d132c3cd | 845:7331b7c9f1c9 |
---|---|
761 } | 761 } |
762 | 762 |
763 void tree_add(void) | 763 void tree_add(void) |
764 { | 764 { |
765 HTREEITEM t1,t2,t3,t4,t5,t6; | 765 HTREEITEM t1,t2,t3,t4,t5,t6; |
766 HWND listbox; | |
767 | |
768 /* create a box to pack into the notebook page */ | |
769 listbox = dw_listbox_new(1024, TRUE); | |
770 dw_box_pack_start( notebookbox3, listbox, 500, 200, TRUE, TRUE, 0); | |
771 dw_listbox_append(listbox, "Test 1"); | |
772 dw_listbox_append(listbox, "Test 2"); | |
773 dw_listbox_append(listbox, "Test 3"); | |
774 dw_listbox_append(listbox, "Test 4"); | |
775 dw_listbox_append(listbox, "Test 5"); | |
766 | 776 |
767 /* create a box to pack into the notebook page */ | 777 /* create a box to pack into the notebook page */ |
768 treebox = dw_box_new(BOXHORZ, 2); | 778 treebox = dw_box_new(BOXHORZ, 2); |
769 dw_box_pack_start( notebookbox3, treebox, 500, 200, TRUE, TRUE, 0); | 779 dw_box_pack_start( notebookbox3, treebox, 500, 200, TRUE, TRUE, 0); |
770 | 780 |