Solved

Showing hints from Tmenu components

Posted on 1997-07-30
3
226 Views
Last Modified: 2010-04-03
How can one cause the Hint property of a Tmenu component,
e.g. in a main menu to popup when the cursor is on it? It doesn't
do so in my application, although Application.ShowHint is True,
and the hint strings are not empty.
0
Comment
Question by:m.canty
  • 2
3 Comments
 
LVL 1

Expert Comment

by:jackb022197
ID: 1340207
I do not know why the hint does not show up on the MenuItem (I do not even know *if it is possible* to do this), but when I drop a label on the Form and add an .OnHint proc with Label1.Caption := Application.Hint, then the label's caption *is* changed to the string set for this particular TMenuItem...

0
 

Author Comment

by:m.canty
ID: 1340208
Re: *if it is possible*:
This is what Delphi Help says regarding Tmenu.Hint:

"Set Hint to a string that provides more information about the meaning of the menu item than the Caption. The hint text appears in a Help Hint window when the user pauses with the mouse over the menu item if Help Hints are enabled. It is also available for the code in the application’s OnHint event handler."

So its *supposed* to be possible. Is it a genuine bug? If so, I'll
give up for now and use Application.Hint as you suggest. Thanks.

0
 
LVL 1

Accepted Solution

by:
jackb022197 earned 50 total points
ID: 1340209
I did not find any reference to this in the bug list... But I guess it looks like a bug <g>. I can not remember ever seeing this by the way: A hint from a menu...

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Convert Jpg /PNG To GIF 5 149
Strange behavior when a form is closed 6 60
HTML text in the body of an email (delphi code) 12 166
LAN or WAN ? 11 95
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question