Ignore:
Timestamp:
Mar 21, 2012, 6:18:39 PM (12 years ago)
Author:
chronos
Message:
  • Fixed: Translation of runtime craeted forms.
  • Fixed: Do not enable controls if condition not met.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Client/Forms/UFormLogin.pas

    r46 r50  
    3232  private
    3333  public
     34    procedure UpdateInterface;
    3435  end;
    3536
     
    7071  if (ComboBoxConnection.Items.Count > 0) and
    7172    (ComboBoxConnection.ItemIndex = -1) then ComboBoxConnection.ItemIndex := 0;
     73  UpdateInterface;
     74end;
     75
     76procedure TLoginForm.UpdateInterface;
     77begin
     78  ButtonLogin.Enabled := ComboBoxConnection.ItemIndex >= 0;
    7279end;
    7380
     
    8188  try
    8289    LoginProfileForm := TLoginProfileForm.Create(MainForm);
     90    Core.CoolTranslator1.TranslateComponentRecursive(LoginProfileForm);
    8391    if LoginProfileForm.ShowModal = mrOk then begin
    8492      Core.Profiles.FillStrings(ComboBoxConnection.Items);
     
    9199    LoginProfileForm.Free;
    92100  end;
     101  UpdateInterface;
    93102end;
    94103
Note: See TracChangeset for help on using the changeset viewer.