comparison dwtest.c @ 2521:5f92284e2b08

Android: Implement bitmap buttons, implement dw_listbox_selected_multi(). Added a number of safety checks to prevent java exceptions.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 09 May 2021 09:31:14 +0000
parents fa976a5bc7bd
children 457c91634881
comparison
equal deleted inserted replaced
2520:167af4b0004b 2521:5f92284e2b08
641 { 641 {
642 unsigned int y,m,d; 642 unsigned int y,m,d;
643 unsigned int idx; 643 unsigned int idx;
644 int len; 644 int len;
645 long spvalue; 645 long spvalue;
646 char buf1[100]; 646 char buf1[100] = {0};
647 char buf2[100]; 647 char buf2[100] = {0};
648 char buf3[500]; 648 char buf3[500] = {0};
649 649
650 idx = dw_listbox_selected(combobox1); 650 idx = dw_listbox_selected(combobox1);
651 dw_listbox_get_text(combobox1, idx, buf1, 99); 651 dw_listbox_get_text(combobox1, idx, buf1, 99);
652 idx = dw_listbox_selected(combobox2); 652 idx = dw_listbox_selected(combobox2);
653 dw_listbox_get_text(combobox2, idx, buf2, 99); 653 dw_listbox_get_text(combobox2, idx, buf2, 99);