C
Clif McIrvin
Hi all-
I found parts of my answer in the archives, but am wondering if my
solution really is a 'good' one.
I have a form with a combo box (with enter and exit event procedures)
and a non-associated label (this lets me set up a On Click event for
the label.) (Several pairs, actually.)
When I was setting this up I considered using a command button but
settled on the unassociated label as it seemed to me to be "less
complicated."
Now, as I am putting the form into use I find that I'd like to set up
shortcut key access to the combo box.
The information I found in the archives was how to associate a label
with an existing control; but that lost my On Click event for the
label.
The solution I have arrived at, and that I'd like comments on, please,
is to keep both labels. The associated label has the shortcut key, and
the freestanding label has the On Click event.
To keep the form appearance, I formatted both labels identically
(including the caption with the shortcut key) and set visible=false
for the associated label.
This appears to be doing what I wish.
My question: is there a "cleaner" way to accomplish my objective?
Re-reading this post, perhaps this additional comment will be
helpful: Each pair of controls performs a lookup function. The user
enters the lookup criteria in the combo box, then executes the lookup
either by exiting the text box or clicking on the label. Keyboard
users will appreciate the shortcut key entry to the lookup text box
and the "tab" exit, and graphical oriented users will appreciate the
intuitave mouse clicks to select from a drop-down list of choices,
then execute the lookup.
Thanks for any suggestions!
I found parts of my answer in the archives, but am wondering if my
solution really is a 'good' one.
I have a form with a combo box (with enter and exit event procedures)
and a non-associated label (this lets me set up a On Click event for
the label.) (Several pairs, actually.)
When I was setting this up I considered using a command button but
settled on the unassociated label as it seemed to me to be "less
complicated."
Now, as I am putting the form into use I find that I'd like to set up
shortcut key access to the combo box.
The information I found in the archives was how to associate a label
with an existing control; but that lost my On Click event for the
label.
The solution I have arrived at, and that I'd like comments on, please,
is to keep both labels. The associated label has the shortcut key, and
the freestanding label has the On Click event.
To keep the form appearance, I formatted both labels identically
(including the caption with the shortcut key) and set visible=false
for the associated label.
This appears to be doing what I wish.
My question: is there a "cleaner" way to accomplish my objective?
Re-reading this post, perhaps this additional comment will be
helpful: Each pair of controls performs a lookup function. The user
enters the lookup criteria in the combo box, then executes the lookup
either by exiting the text box or clicking on the label. Keyboard
users will appreciate the shortcut key entry to the lookup text box
and the "tab" exit, and graphical oriented users will appreciate the
intuitave mouse clicks to select from a drop-down list of choices,
then execute the lookup.
Thanks for any suggestions!