2018-10-15 00:02:13 +02:00
|
|
|
_ini ini = { "/sys/settings/app.ini", "Txtread" };
|
2015-09-07 17:07:51 +02:00
|
|
|
|
|
|
|
void LoadIniSettings()
|
|
|
|
{
|
2017-10-05 11:37:50 +02:00
|
|
|
kfont.size.pt = ini.GetInt("FontSize", 14);
|
|
|
|
encoding = ini.GetInt("Encoding", CH_CP866);
|
2018-10-21 00:56:14 +02:00
|
|
|
curcol_scheme = ini.GetInt("ColorScheme", 2);
|
2017-10-05 11:37:50 +02:00
|
|
|
Form.left = ini.GetInt("WinX", 150);
|
|
|
|
Form.top = ini.GetInt("WinY", 50);
|
|
|
|
Form.width = ini.GetInt("WinW", 640);
|
|
|
|
Form.height = ini.GetInt("WinH", 560);
|
2015-09-07 17:07:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void SaveIniSettings()
|
|
|
|
{
|
2017-10-05 11:37:50 +02:00
|
|
|
ini.SetInt("FontSize", kfont.size.pt);
|
|
|
|
ini.SetInt("Encoding", encoding);
|
2018-10-15 00:02:13 +02:00
|
|
|
ini.SetInt("ColorScheme", curcol_scheme);
|
2017-10-05 11:37:50 +02:00
|
|
|
ini.SetInt("WinX", Form.left);
|
|
|
|
ini.SetInt("WinY", Form.top);
|
|
|
|
ini.SetInt("WinW", Form.width);
|
|
|
|
ini.SetInt("WinH", Form.height);
|
2015-09-07 17:07:51 +02:00
|
|
|
}
|