Rev 6043 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6043 | Rev 6806 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | char config_section[] = "Config"; |
2 | char config_section[] = "Config"; |
3 | int encoding; |
3 | int encoding; |
Line 4... | Line 4... | ||
4 | 4 | ||
5 | void LoadIniSettings() |
5 | void LoadIniSettings() |
6 | { |
6 | { |
7 | label.size.pt = 14; |
7 | kfont.size.pt = 14; |
8 | encoding = CH_CP866; |
8 | encoding = CH_CP866; |
9 | Form.left = 150; |
9 | Form.left = 150; |
10 | Form.top = 50; |
10 | Form.top = 50; |
11 | Form.width = 640; |
11 | Form.width = 640; |
12 | Form.height = 560; |
12 | Form.height = 560; |
13 | /* |
13 | /* |
14 | strcpy(#ini_path, "/sys/settings/treader.ini"); |
14 | strcpy(#ini_path, "/sys/settings/treader.ini"); |
15 | ini_get_int stdcall (#ini_path, #config_section, "FontSize", 14); label.size.pt = EAX; |
15 | ini_get_int stdcall (#ini_path, #config_section, "FontSize", 14); kfont.size.pt = EAX; |
16 | ini_get_int stdcall (#ini_path, #config_section, "Encoding", CH_CP866); encoding = EAX; |
16 | ini_get_int stdcall (#ini_path, #config_section, "Encoding", CH_CP866); encoding = EAX; |
17 | ini_get_int stdcall (#ini_path, #config_section, "WinX", 150); Form.left = EAX; |
17 | ini_get_int stdcall (#ini_path, #config_section, "WinX", 150); Form.left = EAX; |
18 | ini_get_int stdcall (#ini_path, #config_section, "WinY", 50); Form.top = EAX; |
18 | ini_get_int stdcall (#ini_path, #config_section, "WinY", 50); Form.top = EAX; |
19 | ini_get_int stdcall (#ini_path, #config_section, "WinW", 640); Form.width = EAX; |
19 | ini_get_int stdcall (#ini_path, #config_section, "WinW", 640); Form.width = EAX; |
Line 22... | Line 22... | ||
22 | } |
22 | } |
Line 23... | Line 23... | ||
23 | 23 | ||
24 | void SaveIniSettings() |
24 | void SaveIniSettings() |
25 | { |
25 | { |
26 | /* |
26 | /* |
27 | ini_set_int stdcall (#ini_path, #config_section, "FontSize", label.size.pt); |
27 | ini_set_int stdcall (#ini_path, #config_section, "FontSize", kfont.size.pt); |
28 | ini_set_int stdcall (#ini_path, #config_section, "Encoding", encoding); |
28 | ini_set_int stdcall (#ini_path, #config_section, "Encoding", encoding); |
29 | ini_set_int stdcall (#ini_path, #config_section, "WinX", Form.left); |
29 | ini_set_int stdcall (#ini_path, #config_section, "WinX", Form.left); |
30 | ini_set_int stdcall (#ini_path, #config_section, "WinY", Form.top); |
30 | ini_set_int stdcall (#ini_path, #config_section, "WinY", Form.top); |
31 | ini_set_int stdcall (#ini_path, #config_section, "WinW", Form.width); |
31 | ini_set_int stdcall (#ini_path, #config_section, "WinW", Form.width); |