mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-04 14:21:55 +03:00
98a4aa1070
other apps small update git-svn-id: svn://kolibrios.org@7493 a494cfbc-eb01-0410-851d-a64ba20cac60
23 lines
691 B
C
23 lines
691 B
C
_ini ini = { "/sys/settings/app.ini", "Txtread" };
|
|
|
|
void LoadIniSettings()
|
|
{
|
|
kfont.size.pt = ini.GetInt("FontSize", 14);
|
|
encoding = ini.GetInt("Encoding", CH_CP866);
|
|
curcol_scheme = ini.GetInt("ColorScheme", 2);
|
|
Form.left = ini.GetInt("WinX", 150);
|
|
Form.top = ini.GetInt("WinY", 50);
|
|
Form.width = ini.GetInt("WinW", 640);
|
|
Form.height = ini.GetInt("WinH", 560);
|
|
}
|
|
|
|
void SaveIniSettings()
|
|
{
|
|
ini.SetInt("FontSize", kfont.size.pt);
|
|
ini.SetInt("Encoding", encoding);
|
|
ini.SetInt("ColorScheme", curcol_scheme);
|
|
ini.SetInt("WinX", Form.left);
|
|
ini.SetInt("WinY", Form.top);
|
|
ini.SetInt("WinW", Form.width);
|
|
ini.SetInt("WinH", Form.height);
|
|
} |