Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Catch Mouse over MenuItem

Posted on 1998-10-06
14
Medium Priority
?
253 Views
Last Modified: 2012-05-05
Hi,
is there any Way to catch the Mouse while it is moved over a TMenu Item ? I didn't see a such Event. I want to write a short Text Message to a StatusBar-Item. Something Like

FILE
  NEW

--> Create new File

while the Mouse is over the "NEW" Item

thanx ;)
0
Comment
Question by:omsec
  • 6
  • 3
  • 3
  • +1
14 Comments
 
LVL 4

Expert Comment

by:erajoj
ID: 1341992
Hi,
Use the Application.OnHint event instead.
There are examples in the help file, and if you use the project wizard or SDI/MDI project, it will be done for you.

/// John
0
 
LVL 1

Expert Comment

by:BlackDeath
ID: 1341993
what john means in your case is:

set the menuitems hint property to "file new"
in the formcreate event, set: Application.OnHint := ShowHint;
have a procedure called: TForm1.ShowHint(Sender: TObject) doing the following:
  StatusBar1.Panels[0].Text := Application.Hint;

bye,

Black Death.
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1341994
Yup Black Death is RAIT :::::::-----------))))))) :-D

I only have a simple suggestion... Becauuse the form and maybe other controls have the proerpty ShowHint I suggest you better use a different name for your ShowHint() procedure... That's all guys ;->

Vik
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 1

Expert Comment

by:BlackDeath
ID: 1341995
yar vik - correctemundo!

:*)

Black Death.
0
 
LVL 4

Expert Comment

by:erajoj
ID: 1341996
Viktor, better buy a new KBD!

/// John

0
 
LVL 1

Expert Comment

by:BlackDeath
ID: 1341997
BG

Black Death.
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1341998
Hello guys?????

What do all those symbols mean???

BlackDeath : BG?????

John : Viktor, better buy a new KBD!??????????????

Please explain that to me.,,,
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1341999
Did I say something I was not suppose to say???? . o O

Vik
0
 
LVL 1

Expert Comment

by:BlackDeath
ID: 1342000
Big Grins

cul8r,

Black Death.


0
 
LVL 2

Author Comment

by:omsec
ID: 1342001
well, this workds fine, but i dunno who to get the points now :P
0
 
LVL 1

Expert Comment

by:BlackDeath
ID: 1342002
quite easy:

give'em 2 john 4 he was the 1st 2 answer (fcfs)

auf ein wiedersehen,

Black Death.


0
 
LVL 2

Author Comment

by:omsec
ID: 1342003
yeah, but BlackDeath showed me the right way i didnt get it before
0
 
LVL 1

Accepted Solution

by:
BlackDeath earned 60 total points
ID: 1342004
o.k., i'll do it this way:

i answer this q and then i post a q for john with value 20 rating the same  as you rate me
i.e. if you rate me D i'll rate john's answer D, too
if you rate me A i'll rate john's answer A, too etc

this way we will get the same amount of points.
i don't need mine anyway (at this time, that is).

whaddaya think of it?

go for it-

Black Death.
0
 
LVL 2

Author Comment

by:omsec
ID: 1342005
ok, B, because a had to try out a bit by myself :)
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…

963 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