-=> Frank Malcolm wrote with startling eloquence to All <=-
FM> How on earth do you show a hint for a menu item?
Best bet is always to take apart some of the included examples (or even
better, just steal them outright :-)
In your main form 'create' method, do something like this...
procedure TMainForm.FormCreate(Sender: TObject);
begin
Application.HintPause := 10;
Application.OnHint := ShowHint;
end;
Then create showhint as a private method like this...
procedure TMainForm.ShowHint(Sender: TObject);
begin
HintPanels.Caption := Application.Hint;
end;
That should display the hint text for your menus in your hintpanel. Also, as
an extra trick, you can have other hints show up in the hint panel as well.
For example, with a speed button hint property, you can put something like
"Short hint|This is a really long hint". The pipe seperator will tell Delphi
to use the Short Hint text in the little pop-up bubble, and the long hint
will be directed to the Application.Hint, and show up in your hint panel.
EEAS
eric@kobayashi.com
--- Blue Wave/DOS v2.21
---------------
* Origin: The Aircrash Bureau Chicago 312-278-1195 33.6 (1:115/327)
|