Rev 3412 | Rev 3860 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3412 | Rev 3444 | ||
---|---|---|---|
Line 7... | Line 7... | ||
7 | #include "..\lib\dll.h" |
7 | #include "..\lib\dll.h" |
8 | #include "..\lib\edit_box_lib.h" |
8 | #include "..\lib\edit_box_lib.h" |
Line 9... | Line 9... | ||
9 | 9 | ||
10 | 10 | ||
11 | unsigned char speaker[23*40*3]= FROM "speaker.raw"; |
11 | unsigned char speaker[23*40*3]= FROM "speaker.raw"; |
12 | char title[]= "Dictionary v1.3"; |
12 | char title[]= "Dictionary v1.31"; |
13 | char direction[] = "Translate direction:"; |
13 | char direction[] = "Translate direction:"; |
14 | char translate_caption[] = "Translate"; |
14 | char translate_caption[] = "Translate"; |
15 | char dict_not_found[] = "Dictionary not found"; |
15 | char dict_not_found[] = "Dictionary not found"; |
Line 60... | Line 60... | ||
60 | edit_box_mouse stdcall (#edit1); |
60 | edit_box_mouse stdcall (#edit1); |
61 | break; |
61 | break; |
Line 62... | Line 62... | ||
62 | 62 | ||
63 | case evButton: |
63 | case evButton: |
64 | id=GetButtonID(); |
64 | id=GetButtonID(); |
65 | if (id==1) ExitProcess(); |
65 | if (id==1) {KillProcess(speaker_id); ExitProcess();} |
66 | if (id==10) { Translate(); DrawTranslation(); } |
66 | if (id==10) { Translate(); DrawTranslation(); } |
67 | if (id==11) ShowDictList(); |
67 | if (id==11) ShowDictList(); |
68 | if (id==12) DrawWindowContent(); |
68 | if (id==12) DrawWindowContent(); |
69 | if (id==15) |
69 | if (id==15) |
Line 227... | Line 227... | ||
227 | void ShowDictList() |
227 | void ShowDictList() |
228 | { |
228 | { |
229 | int j, fcount, error; |
229 | int j, fcount, error; |
Line 230... | Line 230... | ||
230 | 230 | ||
231 | free(dir_buf); |
231 | free(dir_buf); |
232 | error = GetDir(#dir_buf, #fcount, #dict_folder); |
232 | error = GetDir(#dir_buf, #fcount, #dict_folder, DIRS_ONLYREAL); |
233 | if (!error) |
233 | if (!error) |
234 | { |
234 | { |
235 | DefineButton(0,0, Form.width,Form.height, 12+BT_HIDE+BT_NOFRAME, sc.work_button); |
235 | DefineButton(0,0, Form.width,Form.height, 12+BT_HIDE+BT_NOFRAME, sc.work_button); |
236 | for (j=0; j |
236 | for (j=0; j |