Changeset 21 for trunk/UOptionsForm.pas


Ignore:
Timestamp:
Feb 12, 2012, 8:05:28 PM (13 years ago)
Author:
chronos
Message:
  • Added: Storing last opened project list in registry.
  • Added: Opiton to reopen last opened project.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UOptionsForm.pas

    r15 r21  
    1616    ButtonOk: TButton;
    1717    ButtonCancel: TButton;
     18    CheckBox1: TCheckBox;
    1819    ComboBoxLanguage: TComboBox;
    1920    Label1: TLabel;
     
    4849  ComboBoxLanguage.ItemIndex := MainForm.CoolTranslator1.Languages.IndexOf(MainForm.CoolTranslator1.Language);
    4950  if ComboBoxLanguage.ItemIndex = -1 then ComboBoxLanguage.ItemIndex := 0;
     51  CheckBox1.Checked := MainForm.OpenProjectOnStart;
    5052end;
    5153
     
    5456  if ComboBoxLanguage.ItemIndex <> -1 then
    5557    MainForm.CoolTranslator1.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxLanguage.ItemIndex]);
     58  MainForm.OpenProjectOnStart := CheckBox1.Checked;
    5659end;
    5760
Note: See TracChangeset for help on using the changeset viewer.