Mercurial > dwindows
comparison dwtest.c @ 2430:e08968d21d45
iOS: Additional code to calculate spinbutton size.
Spinbuttons on iOS are unusually large, don't use a specific value in
dwtest... let the system decide so the spinbutton isn't clipped on iOS.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 05 Apr 2021 15:24:08 +0000 |
parents | 65ff339e9cd2 |
children | a773008c7c5d |
comparison
equal
deleted
inserted
replaced
2429:89f4aba2e387 | 2430:e08968d21d45 |
---|---|
1405 dw_checkbox_set(checkbox, TRUE); | 1405 dw_checkbox_set(checkbox, TRUE); |
1406 text = dw_text_new("Font:", 0); | 1406 text = dw_text_new("Font:", 0); |
1407 dw_window_set_style(text, DW_DT_VCENTER, DW_DT_VCENTER); | 1407 dw_window_set_style(text, DW_DT_VCENTER, DW_DT_VCENTER); |
1408 dw_box_pack_start(hbox, text, -1, -1, FALSE, TRUE, 1); | 1408 dw_box_pack_start(hbox, text, -1, -1, FALSE, TRUE, 1); |
1409 fontsize = dw_spinbutton_new("9", 0); | 1409 fontsize = dw_spinbutton_new("9", 0); |
1410 dw_box_pack_start(hbox, fontsize, 50, -1, FALSE, FALSE, 1); | 1410 dw_box_pack_start(hbox, fontsize, -1, -1, FALSE, FALSE, 1); |
1411 dw_spinbutton_set_limits(fontsize, 100, 5); | 1411 dw_spinbutton_set_limits(fontsize, 100, 5); |
1412 dw_spinbutton_set_pos(fontsize, 9); | 1412 dw_spinbutton_set_pos(fontsize, 9); |
1413 fontname = dw_combobox_new("Default", 0); | 1413 fontname = dw_combobox_new("Default", 0); |
1414 dw_listbox_append(fontname, "Default"); | 1414 dw_listbox_append(fontname, "Default"); |
1415 dw_listbox_append(fontname, "Arial"); | 1415 dw_listbox_append(fontname, "Arial"); |