The Unofficial Newsletter of Delphi Users - by Robert Vivrette


Multi-Line Hints

Jorge Turiel - eb1fts@arrakis.es

Here is a quick tip!

If you want to have more than a single line hint on a control, for example in a button, put it's ShowHint property to true but don't put anything in it's hint property. Then, in the FormCreate event of the form just do this:

procedure TForm1.FormCreate(Sender: TObject);
begin
  Button1.Hint := 'First line'+chr(13)+'Second line';
End;