home *** CD-ROM | disk | FTP | other *** search
/ Delphi 5 for Professionals / DELPHI5.iso / AddOns / Books / 2 / MULTHINT.ZIP / MULTHNT1.PAS < prev   
Encoding:
Pascal/Delphi Source File  |  1996-07-29  |  766 b   |  45 lines

  1. unit Multhnt1;
  2.  
  3. interface
  4.  
  5. uses
  6.   SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  7.   Forms, Dialogs, StdCtrls;
  8.  
  9. type
  10.   TForm1 = class(TForm)
  11.     Button1: TButton;
  12.     Button2: TButton;
  13.     Button3: TButton;
  14.     procedure FormCreate(Sender: TObject);
  15.   private
  16.     { Private-Deklarationen }
  17.   public
  18.     { Public-Deklarationen }
  19.   end;
  20.  
  21. var
  22.   Form1: TForm1;
  23.  
  24. implementation
  25.  
  26. {$R *.DFM}
  27.  
  28. procedure TForm1.FormCreate(Sender: TObject);
  29. Var I: Integer;
  30.     S: String;
  31. begin
  32. for I := 0 to ComponentCount -1 do
  33.   if Components[I] is TControl then
  34.     With TControl(Components[I]) Do
  35.     Begin
  36.       S := Hint;
  37.       While Pos('@',S) <> 0 Do
  38.         S[Pos('@',S)] := #13;
  39.       Hint := S;
  40.     End;
  41.  
  42. end;
  43.  
  44. end.
  45.