Subversion Repositories Kolibri OS

Rev

Rev 6759 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6759 Rev 6806
Line 3... Line 3...
3
int encoding;
3
int encoding;
Line 4... Line 4...
4
 
4
 
5
void LoadIniSettings()
5
void LoadIniSettings()
6
{
6
{
7
	strcpy(#ini_path, "/sys/settings/txtread.ini");
7
	strcpy(#ini_path, "/sys/settings/txtread.ini");
8
	ini_get_int stdcall   (#ini_path, #config_section, "FontSize",  14); label.size.pt = EAX;
8
	ini_get_int stdcall   (#ini_path, #config_section, "FontSize",  14); kfont.size.pt = EAX;
9
	ini_get_int stdcall   (#ini_path, #config_section, "Encoding",  CH_CP866); encoding = EAX;
9
	ini_get_int stdcall   (#ini_path, #config_section, "Encoding",  CH_CP866); encoding = EAX;
10
	ini_get_int stdcall   (#ini_path, #config_section, "WinX", 150); Form.left = EAX;
10
	ini_get_int stdcall   (#ini_path, #config_section, "WinX", 150); Form.left = EAX;
11
	ini_get_int stdcall   (#ini_path, #config_section, "WinY", 50); Form.top = EAX;
11
	ini_get_int stdcall   (#ini_path, #config_section, "WinY", 50); Form.top = EAX;
12
	ini_get_int stdcall   (#ini_path, #config_section, "WinW", 640); Form.width = EAX;
12
	ini_get_int stdcall   (#ini_path, #config_section, "WinW", 640); Form.width = EAX;
13
	ini_get_int stdcall   (#ini_path, #config_section, "WinH", 560); Form.height = EAX;
13
	ini_get_int stdcall   (#ini_path, #config_section, "WinH", 560); Form.height = EAX;
Line 14... Line 14...
14
}
14
}
15
 
15
 
16
void SaveIniSettings()
16
void SaveIniSettings()
17
{
17
{
18
	ini_set_int stdcall (#ini_path, #config_section, "FontSize", label.size.pt);
18
	ini_set_int stdcall (#ini_path, #config_section, "FontSize", kfont.size.pt);
19
	ini_set_int stdcall (#ini_path, #config_section, "Encoding", encoding);
19
	ini_set_int stdcall (#ini_path, #config_section, "Encoding", encoding);
20
	ini_set_int stdcall (#ini_path, #config_section, "WinX", Form.left);
20
	ini_set_int stdcall (#ini_path, #config_section, "WinX", Form.left);
21
	ini_set_int stdcall (#ini_path, #config_section, "WinY", Form.top);
21
	ini_set_int stdcall (#ini_path, #config_section, "WinY", Form.top);