Subversion Repositories Kolibri OS

Rev

Rev 6806 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
7051 leency 1
_ini ini = { "/sys/settings/txtread.ini", "Config" };
5819 leency 2
 
3
void LoadIniSettings()
4
{
7051 leency 5
	kfont.size.pt = ini.GetInt("FontSize", 14);
6
	encoding      = ini.GetInt("Encoding", CH_CP866);
7
	Form.left     = ini.GetInt("WinX", 150);
8
	Form.top      = ini.GetInt("WinY", 50);
9
	Form.width    = ini.GetInt("WinW", 640);
10
	Form.height   = ini.GetInt("WinH", 560);
5819 leency 11
}
12
 
13
void SaveIniSettings()
14
{
7051 leency 15
	ini.SetInt("FontSize", kfont.size.pt);
16
	ini.SetInt("Encoding", encoding);
17
	ini.SetInt("WinX", Form.left);
18
	ini.SetInt("WinY", Form.top);
19
	ini.SetInt("WinW", Form.width);
20
	ini.SetInt("WinH", Form.height);
5819 leency 21
}