Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. #include "../lib/obj/libini.h"
  2.  
  3. _ini ini = { "/sys/settings/app.ini", "Notes" };
  4.  
  5. void LoadIniSettings()
  6. {
  7.         load_dll(libini, #lib_init,1);
  8.         Form.left     = ini.GetInt("WinX", 150);
  9.         Form.top      = ini.GetInt("WinY", 50);
  10.         //Form.width    = ini.GetInt("WinW", 640);
  11.         //Form.height   = ini.GetInt("WinH", 560);
  12. }
  13.  
  14. void SaveIniSettings()
  15. {
  16.         ini.SetInt("WinX", Form.left);
  17.         ini.SetInt("WinY", Form.top);
  18.         //ini.SetInt("WinW", Form.width);
  19.         //ini.SetInt("WinH", Form.height);
  20. }