Solved

Showing hints from Tmenu components

Posted on 1997-07-30
3
199 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now