comparison dwtest.c @ 2419:65ff339e9cd2

iOS: A number of fixes, notebook layout select first page if none selected. DWText is a kind of UILabel so check Kind not Member. Disable the calendar control for now, since it was hanging the UI. Cleanup some of the dwtest changes, now that no tabs are disabled. Remove some unnecessary macros since functionality is included in the thread safety macros.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 03 Apr 2021 18:44:01 +0000
parents 0286ac44d347
children e08968d21d45
comparison
equal deleted inserted replaced
2418:50e1ddce0aeb 2419:65ff339e9cd2
1165 1165
1166 void tree_add(void) 1166 void tree_add(void)
1167 { 1167 {
1168 HTREEITEM t1,t2; 1168 HTREEITEM t1,t2;
1169 HWND listbox; 1169 HWND listbox;
1170 char *title;
1171 1170
1172 /* create a box to pack into the notebook page */ 1171 /* create a box to pack into the notebook page */
1173 listbox = dw_listbox_new(1024, TRUE); 1172 listbox = dw_listbox_new(1024, TRUE);
1174 dw_box_pack_start(notebookbox3, listbox, 500, 200, TRUE, TRUE, 0); 1173 dw_box_pack_start(notebookbox3, listbox, 500, 200, TRUE, TRUE, 0);
1175 dw_listbox_append(listbox, "Test 1"); 1174 dw_listbox_append(listbox, "Test 1");
1180 1179
1181 /* now a tree area under this box */ 1180 /* now a tree area under this box */
1182 tree = dw_tree_new(101); 1181 tree = dw_tree_new(101);
1183 if(tree) 1182 if(tree)
1184 { 1183 {
1184 char *title;
1185
1185 dw_box_pack_start(notebookbox3, tree, 500, 200, TRUE, TRUE, 1); 1186 dw_box_pack_start(notebookbox3, tree, 500, 200, TRUE, TRUE, 1);
1186 1187
1187 /* and a status area to see whats going on */ 1188 /* and a status area to see whats going on */
1188 tree_status = dw_status_text_new("", 0); 1189 tree_status = dw_status_text_new("", 0);
1189 dw_box_pack_start(notebookbox3, tree_status, 100, -1, TRUE, FALSE, 1); 1190 dw_box_pack_start(notebookbox3, tree_status, 100, -1, TRUE, FALSE, 1);
2162 notebookpage6 = dw_notebook_page_new( notebook, 1, FALSE ); 2163 notebookpage6 = dw_notebook_page_new( notebook, 1, FALSE );
2163 dw_notebook_pack( notebook, notebookpage6, notebookbox6 ); 2164 dw_notebook_pack( notebook, notebookpage6, notebookbox6 );
2164 dw_notebook_page_set_text( notebook, notebookpage6, "mdi"); 2165 dw_notebook_page_set_text( notebook, notebookpage6, "mdi");
2165 mdi_add(); 2166 mdi_add();
2166 #endif 2167 #endif
2167
2168 notebookbox7 = dw_box_new( DW_VERT, 6 ); 2168 notebookbox7 = dw_box_new( DW_VERT, 6 );
2169 notebookpage7 = dw_notebook_page_new( notebook, 1, FALSE ); 2169 notebookpage7 = dw_notebook_page_new( notebook, 1, FALSE );
2170 dw_notebook_pack( notebook, notebookpage7, notebookbox7 ); 2170 dw_notebook_pack( notebook, notebookpage7, notebookbox7 );
2171 dw_notebook_page_set_text( notebook, notebookpage7, "html"); 2171 dw_notebook_page_set_text( notebook, notebookpage7, "html");
2172 html_add(); 2172 html_add();