S
sparkane
I have some data entry panels which, to make it easy on the user, change
the background of the ctl labels back and forth from transparent
whenever the mouse passes over a ctl or when it receives the focus
(enter event). Thus the ctl's label is colored while the user's
attention is on it, allowing the user to see easily where he/she is at.
Also it currently places a little description of the field in a text
box.
Now I'm creating an entry panel with 45+ ctls. Lots and lots of code
for all these events. I should point out that I'm already using an
independent sub to change the labels' background -- that code does NOT
appear in the mouseover/enter events -- however, I have been using a
single line of code in all these events to call that independent sub:
ShowFieldDescription "[name of label control]"
So except for the name of the label passed to the routine, all the code
is exactly the same. Has anyone done this kind of thing before without
using the ctls' mouseover and enter events, but rather some event at the
form level? I considered using the mouseover on the level of the form,
and running a calculation to see what ctl if any the mouse is over, and
coloring that ctl's label; or using the Timer event to check every x ms
which ctl has the focus. I've been considering these options because it
doesn't appear that there's any form-level event that would allow me to
do what I want (using acc2k).
Thanks very much.
the background of the ctl labels back and forth from transparent
whenever the mouse passes over a ctl or when it receives the focus
(enter event). Thus the ctl's label is colored while the user's
attention is on it, allowing the user to see easily where he/she is at.
Also it currently places a little description of the field in a text
box.
Now I'm creating an entry panel with 45+ ctls. Lots and lots of code
for all these events. I should point out that I'm already using an
independent sub to change the labels' background -- that code does NOT
appear in the mouseover/enter events -- however, I have been using a
single line of code in all these events to call that independent sub:
ShowFieldDescription "[name of label control]"
So except for the name of the label passed to the routine, all the code
is exactly the same. Has anyone done this kind of thing before without
using the ctls' mouseover and enter events, but rather some event at the
form level? I considered using the mouseover on the level of the form,
and running a calculation to see what ctl if any the mouse is over, and
coloring that ctl's label; or using the Timer event to check every x ms
which ctl has the focus. I've been considering these options because it
doesn't appear that there's any form-level event that would allow me to
do what I want (using acc2k).
Thanks very much.