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 ;)
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 ;)
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.
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
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.
:*)
Black Death.
Viktor, better buy a new KBD!
/// John
/// John
BG
Black Death.
Black Death.
Hello guys?????
What do all those symbols mean???
BlackDeath : BG?????
John : Viktor, better buy a new KBD!??????????????
Please explain that to me.,,,
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
Vik
Big Grins
cul8r,
Black Death.
cul8r,
Black Death.
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.
give'em 2 john 4 he was the 1st 2 answer (fcfs)
auf ein wiedersehen,
Black Death.
ASKER
yeah, but BlackDeath showed me the right way i didnt get it before
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok, B, because a had to try out a bit by myself :)
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