GetLongHint

GetLongHint has been in Delphi since version one but gets very little credit. When you assign a hint to a component you can embed a pipe symbol in the hint.

Only the text before the pipe is shown in the hint. To get the rest you use long hint. eg:

procedure TForm1.DisplayHint(Sender: TObject);
begin
  StatusBar1.SimpleText := GetLongHint(Application.Hint);
end;

This is how you get a short hint to appear as a tool tip but a long one to appear in the status bar.

6/15/2004