Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hints not displaying for TMainMenu 1

Status
Not open for further replies.

bobbie100

Programmer
Aug 29, 2003
64
GB
I have several forms that use a TMainMenu. I want to display the Hint item for the various menu and (where applicable) submenu items. However none of the hints I set are displayed.

I have buttons on the same forms that correctly display their hints.

I have checked that Application.ShowHint is True and ShowHint for each Form is True.

I am running Delphi 7 on Win XP.

Anybody got any idea what I'm doing wrong?

Bob
 
I've never seen it done - it's not standard Windows practice. I looked at the TMainMenu component and there is no OnMouseOver event or anything I can see that you could use as a workaround. It might be worth searching for an extended menu component which offers this facility.

Alternatively, create a TToolbar & TToolbarButtons or use a TPanel & TSpeedButtons as these can easily be setup to display hints.

I did a quick google search for 'delphi "main menu" hint' as well and came up with the following page which you might be interested in:
Hope this helps!

Clive
Runner_1Revised.gif

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
 
Clive,

Your reply has been invaluable! I used it to persuade my customer that this really was a BAD idea, even though he had originally insisted that was what he wanted (the customer is always right!).

I had thought it was easy from reading the Delphi help and the fact that Hint was a Published property of TMainMenu.

Many thanks for saving me wasted time and effort.

Bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top