Link to home
Start Free TrialLog in
Avatar of omsec
omsec

asked on

Catch Mouse over MenuItem

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 ;)
Avatar of erajoj
erajoj
Flag of Sweden image

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
Avatar of BlackDeath
BlackDeath

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.
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
yar vik - correctemundo!

:*)

Black Death.
Viktor, better buy a new KBD!

/// John

BG

Black Death.
Hello guys?????

What do all those symbols mean???

BlackDeath : BG?????

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

Please explain that to me.,,,
Did I say something I was not suppose to say???? . o O

Vik
Big Grins

cul8r,

Black Death.


Avatar of omsec

ASKER

well, this workds fine, but i dunno who to get the points now :P
quite easy:

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

auf ein wiedersehen,

Black Death.


Avatar of omsec

ASKER

yeah, but BlackDeath showed me the right way i didnt get it before
ASKER CERTIFIED SOLUTION
Avatar of BlackDeath
BlackDeath

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of omsec

ASKER

ok, B, because a had to try out a bit by myself :)