Модуль "Новое сообщение" (часть 3) - spSkinMemo1KeyPress

Рубрика: Исходники
Среда, 21 апреля 2010 г.
Просмотров: 150
последняя версия: 3.0.9 build 961 beta
от 07 декабря 2007 г.
procedure TfrmAT_NewMessage.spSkinMemo1KeyPress(Sender: TObject;
  var Key: Char);
var
  i: integer;  
begin
  i:= Length((Sender as TspSkinMemo).Text);
  case spSkinRadioGroup2.ItemIndex of
    0: begin
         if (Key in [#13,'А'..'Я','а'..'я']) then Key:=#0;
         ///spSkinStdLabel2.Caption:= Format(at_sm_n_text_04,[IntTostr(i)]);
        end;
    1: begin
         if key = #13 then Key:= #0;
          ///spSkinStdLabel2.Caption:= Format(at_sm_n_text_04,[IntTostr(i)])
        end;
  end;
  spSkinStdLabel2.Caption:= Format(at_sm_n_text_04,[IntTostr(i)]);
end;
Rambler's Top100