fGLForm.pas 910 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //---------------------------------------
  2. // This unit is part of the GLSViewer
  3. //---------------------------------------
  4. unit fGLForm;
  5. (* The fGLForm unit for TGLForm class as parent for all child forms of GLSViewer *)
  6. interface
  7. uses
  8. Winapi.Windows,
  9. System.SysUtils,
  10. System.IniFiles,
  11. Vcl.Forms,
  12. Vcl.Graphics,
  13. Vcl.Menus,
  14. Vcl.Actnlist,
  15. uGlobals
  16. ;
  17. type
  18. TGLForm = class(TForm)
  19. private
  20. public
  21. IniFile : TIniFile;
  22. procedure ReadIniFile; virtual;
  23. end;
  24. var
  25. GLForm: TGLForm;
  26. implementation //============================================================
  27. {$R *.dfm}
  28. //Here goes the translation of all component strings
  29. //
  30. procedure TGLForm.ReadIniFile;
  31. begin
  32. IniFile := TIniFile.Create(ChangeFileExt(ParamStr(0), '.ini'));
  33. with IniFile do
  34. try
  35. LanguageID := ReadInteger('FormOptions', 'rgLanguage', 0);
  36. finally
  37. IniFile.Free;
  38. end;
  39. end;
  40. end.