D
dchendrickson
I am using Access2002/XP Pro and programming primarily
with ADO structures.
I have some forms that are populated with MANY toggle
buttons (they represent wiring connection on a circuit
card). I want to use the mouse move event to update the
Caption of the toggle buttons.
Since each toggle button uses exactly the same code, I
wrote a single function procedure and call to that
instead of the toggle_MouseMove() event procedure.
The problem is how to let the code know which toggle
button is calling it. I am trying to avoid updating the
call for each toggle button individually because that
would mean opening and editing literally hundreds. My
first approach was:
On Mouse Move....... =MouseMoveTimerSet([ActiveControl])
where MouseMoveTimerSet is my Function Procedure. But
[ActiveControl] sends a reference to whichever control
has the focus. So is there a simple way to pass reference
to which control is triggering the code?
The other solution I am trying to avoid (again because of
the shear number of toggle buttons) is to call my
function from the event procedure of each toggle.
Thanks in advance.
-dc
with ADO structures.
I have some forms that are populated with MANY toggle
buttons (they represent wiring connection on a circuit
card). I want to use the mouse move event to update the
Caption of the toggle buttons.
Since each toggle button uses exactly the same code, I
wrote a single function procedure and call to that
instead of the toggle_MouseMove() event procedure.
The problem is how to let the code know which toggle
button is calling it. I am trying to avoid updating the
call for each toggle button individually because that
would mean opening and editing literally hundreds. My
first approach was:
On Mouse Move....... =MouseMoveTimerSet([ActiveControl])
where MouseMoveTimerSet is my Function Procedure. But
[ActiveControl] sends a reference to whichever control
has the focus. So is there a simple way to pass reference
to which control is triggering the code?
The other solution I am trying to avoid (again because of
the shear number of toggle buttons) is to call my
function from the event procedure of each toggle.
Thanks in advance.
-dc