MouseMove

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear,
I am trying to program the mousepointer so that when it reaches a textbox of
form, the textbox will change font color to red, and when the mouse leaves
the textbox, it will resume to orginal color, black. Everything seems simple
and working when I put the Me.<textboxname>.forecolor=255 into the MouseMove
event of the textbox, and the Me.<textboxname>.forecolor=0 into the MouseMove
event of the form-Detail section. The form itself is a subform of the
mainform. Now, my problem is that the subform is in a ContinousForms mode
under the property of DefaultView. When it pulls records out of the
databases, it may have a list of records. Then, when I move the mousepoint
to the programmed textbox with the MouseMove event, the entire list of
texboxes under the same column turns 255 which is red.
Do you have any suggestions on this, so that only the record of the textbox
will change color?
Thank you!
Martin
 
Martin said:
Dear,
I am trying to program the mousepointer so that when it reaches a
textbox of form, the textbox will change font color to red, and when
the mouse leaves the textbox, it will resume to orginal color, black.
Everything seems simple and working when I put the
Me.<textboxname>.forecolor=255 into the MouseMove event of the
textbox, and the Me.<textboxname>.forecolor=0 into the MouseMove
event of the form-Detail section. The form itself is a subform of
the mainform. Now, my problem is that the subform is in a
ContinousForms mode under the property of DefaultView. When it pulls
records out of the databases, it may have a list of records. Then,
when I move the mousepoint to the programmed textbox with the
MouseMove event, the entire list of texboxes under the same column
turns 255 which is red.
Do you have any suggestions on this, so that only the record of the
textbox will change color?
Thank you!
Martin

The problem, as you may know, is that there is only one instance of the
control on the continuous form; it's just drawn multiple times. I
expect you can adapt something from Stephen Lebans' sample database at
the following URL to meet your needs:

http://www.lebans.com/conditionalformatting.htm
 
Back
Top