TIP: Click on subject to list as thread! ANSI
echo: delphi
to: FRANK MALCOLM
from: ERIC SCHREIBER
date: 1996-05-19 14:01:00
subject: Hint, hint...

-=> 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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.