No "right-click" event (argh)

K

krazy darcy

My new "context sensitive" help system has a msg box macro for each field in
my data entry form. The macros reside in a artworks entry macro group.

At the moment if a user "double-click's" on a field a info message box pops
up with some info about how to fill in that field.

Am also using the same system with a seperate macro group for query results
forms.

Only problem is to call up details of a record found in the query results,
you "double-click" on the record number field of the record you want details.
Reason why this is a problem is both systems use a "double-click" which can
get confusing. When setting the fields to launch the macro I see in the
events tab of the field's properties "click", "double-click", mouse up down
and move BUT no "right click"

Why no "right-click"

other than changing the details macro to being launched by a single click is
there any way around this?
 
V

Vincent Johns

krazy said:
My new "context sensitive" help system has a msg box macro for each field in
my data entry form. The macros reside in a artworks entry macro group.

At the moment if a user "double-click's" on a field a info message box pops
up with some info about how to fill in that field.

Am also using the same system with a seperate macro group for query results
forms.

Only problem is to call up details of a record found in the query results,
you "double-click" on the record number field of the record you want details.
Reason why this is a problem is both systems use a "double-click" which can
get confusing. When setting the fields to launch the macro I see in the
events tab of the field's properties "click", "double-click", mouse up down
and move BUT no "right click"

Why no "right-click"

other than changing the details macro to being launched by a single click is
there any way around this?

You are in luck! Use OnMouseUp (or OnMouseDown) and check the value of
the Button parameter (you're probably interested in the acRightButton
value), and maybe also the value of the Shift parameter. This will
probably allow you to do even fancier stuff than you're planning, such
as looking for the middle & right buttons pressed while the Alt key is
held down. (Well, according to the documentation it does; I've never
tried doing that. You could probably turn the mouse into a musical
instrument.) Good luck; you might need to write a bit of VB code.

-- Vincent Johns <[email protected]>
Please feel free to quote anything I say here.
 
T

tfossum

krazy,

Not to second guess you (but it's a newsgroup so why not?) but will the
"ControlTip Text" property not provide enough space for instruction to the
user?

-Ted
 
K

krazy darcy

I wanted it to be avaliable for when a user wants it; a tooltip with 200
characters would get in the way visually. (I have hit the character limit
with the msg box - think it's 255 characters)

thats why I'd rather have a user "right-click" to get help for that field
concerned. And have "left-clicks for thing like selecting things, pclicking
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top