comparison dwtest.c @ 2588:8253e17b20ad

iOS: Remove some bogus secondary color code in DWBox. Add fallback code to give general sizes for DWCalendar widgets... because intrinsicContentSize is returing -1,-1. Use size autodetection for calendar when packing in dwtest.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 24 May 2021 23:29:15 +0000
parents 2acc7ba5dea0
children 99fdcb7f2a2a
comparison
equal deleted inserted replaced
2587:461006160d11 2588:8253e17b20ad
1606 buttonsbox = dw_box_new(DW_VERT, 2); 1606 buttonsbox = dw_box_new(DW_VERT, 2);
1607 dw_box_pack_start(notebookbox5, buttonsbox, 25, 200, TRUE, TRUE, 0); 1607 dw_box_pack_start(notebookbox5, buttonsbox, 25, 200, TRUE, TRUE, 0);
1608 dw_window_set_color(buttonsbox, DW_CLR_RED, DW_CLR_RED); 1608 dw_window_set_color(buttonsbox, DW_CLR_RED, DW_CLR_RED);
1609 1609
1610 calbox = dw_box_new(DW_HORZ, 0); 1610 calbox = dw_box_new(DW_HORZ, 0);
1611 dw_box_pack_start(notebookbox5, calbox, 500, 200, TRUE, TRUE, 1); 1611 dw_box_pack_start(notebookbox5, calbox, 0, 0, TRUE, TRUE, 1);
1612 cal = dw_calendar_new(100); 1612 cal = dw_calendar_new(100);
1613 dw_box_pack_start(calbox, cal, 180, 120, TRUE, TRUE, 0); 1613 dw_box_pack_start(calbox, cal, -1, -1, TRUE, TRUE, 0);
1614 1614
1615 dw_calendar_set_date(cal, 2019, 4, 30); 1615 dw_calendar_set_date(cal, 2019, 4, 30);
1616 1616
1617 /* 1617 /*
1618 * Create our file toolbar boxes... 1618 * Create our file toolbar boxes...