?
Solved

Catch Mouse over MenuItem

Posted on 1998-10-06
14
Medium Priority
?
251 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

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…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

719 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