Unit1.pas 761 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. unit Unit1;
  2. interface
  3. uses
  4. Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  5. Dialogs, StdCtrls;
  6. type
  7. TForm1 = class(TForm)
  8. chk1: TCheckBox;
  9. chk2: TCheckBox;
  10. chk3: TCheckBox;
  11. btn1: TButton;
  12. procedure btn1Click(Sender: TObject);
  13. private
  14. { Private declarations }
  15. public
  16. { Public declarations }
  17. end;
  18. var
  19. Form1: TForm1;
  20. implementation
  21. {$R *.dfm}
  22. { Realiza la acción del botón. }
  23. procedure TForm1.btn1Click(Sender: TObject);
  24. begin
  25. Caption := '';
  26. if chk1.Checked then
  27. begin
  28. Caption := Caption + '(Inglés)';
  29. end;
  30. if chk2.Checked then
  31. begin
  32. Caption := Caption + '(Francés)';
  33. end;
  34. if chk3.Checked then
  35. begin
  36. Caption := Caption + '(Alemán)';
  37. end;
  38. end;
  39. end.