Mercurial > dwindows
comparison dwtest.c @ 2560:3da35cd91ca7
Android: Implement querying containers and ENTER and CONTEXT callbacks.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 18 May 2021 18:41:35 +0000 |
parents | 4c75fb6089a9 |
children | 2acc7ba5dea0 |
comparison
equal
deleted
inserted
replaced
2559:b5e8a319fde6 | 2560:3da35cd91ca7 |
---|---|
905 if(column_num == 0) | 905 if(column_num == 0) |
906 strcpy(buf1,"Filename"); | 906 strcpy(buf1,"Filename"); |
907 else | 907 else |
908 { | 908 { |
909 column_type = dw_filesystem_get_column_type(window, column_num-1); | 909 column_type = dw_filesystem_get_column_type(window, column_num-1); |
910 if( column_type == DW_CFA_STRING) | 910 if(column_type == DW_CFA_STRING) |
911 strcpy(buf1,"String"); | 911 strcpy(buf1,"String"); |
912 else if( column_type == DW_CFA_ULONG) | 912 else if(column_type == DW_CFA_ULONG) |
913 strcpy(buf1,"ULong"); | 913 strcpy(buf1,"ULong"); |
914 else if( column_type == DW_CFA_DATE) | 914 else if(column_type == DW_CFA_DATE) |
915 strcpy(buf1,"Date"); | 915 strcpy(buf1,"Date"); |
916 else if( column_type == DW_CFA_TIME) | 916 else if(column_type == DW_CFA_TIME) |
917 strcpy(buf1,"Time"); | 917 strcpy(buf1,"Time"); |
918 else if( column_type == DW_CFA_BITMAPORICON) | 918 else if(column_type == DW_CFA_BITMAPORICON) |
919 strcpy(buf1,"BitmapOrIcon"); | 919 strcpy(buf1,"BitmapOrIcon"); |
920 else | 920 else |
921 strcpy(buf1,"Unknown"); | 921 strcpy(buf1,"Unknown"); |
922 } | 922 } |
923 sprintf(buf,"DW_SIGNAL_COLUMN_CLICK: Window: %x Column: %d Type: %s Itemdata: %x", DW_POINTER_TO_UINT(window), | 923 sprintf(buf,"DW_SIGNAL_COLUMN_CLICK: Window: %x Column: %d Type: %s Itemdata: %x", DW_POINTER_TO_UINT(window), |
1104 wchar_t widestring[100] = L"DWTest Wide"; | 1104 wchar_t widestring[100] = L"DWTest Wide"; |
1105 char *utf8string = dw_wchar_to_utf8(widestring); | 1105 char *utf8string = dw_wchar_to_utf8(widestring); |
1106 | 1106 |
1107 /* create a box to pack into the notebook page */ | 1107 /* create a box to pack into the notebook page */ |
1108 pagebox = dw_box_new(DW_HORZ, 2); | 1108 pagebox = dw_box_new(DW_HORZ, 2); |
1109 dw_box_pack_start( notebookbox2, pagebox, 0, 0, TRUE, TRUE, 0); | 1109 dw_box_pack_start(notebookbox2, pagebox, 0, 0, TRUE, TRUE, 0); |
1110 /* now a status area under this box */ | 1110 /* now a status area under this box */ |
1111 hbox = dw_box_new(DW_HORZ, 1 ); | 1111 hbox = dw_box_new(DW_HORZ, 1 ); |
1112 dw_box_pack_start(notebookbox2, hbox, 100, 20, TRUE, FALSE, 1); | 1112 dw_box_pack_start(notebookbox2, hbox, 100, 20, TRUE, FALSE, 1); |
1113 status1 = dw_status_text_new("", 0); | 1113 status1 = dw_status_text_new("", 0); |
1114 dw_box_pack_start(hbox, status1, 100, -1, TRUE, FALSE, 1); | 1114 dw_box_pack_start(hbox, status1, 100, -1, TRUE, FALSE, 1); |