Mouse Position

H

HB

Is there a way I can determine the location of the last mouse pick without
using the mouse event procedures' X Y arguments?

I am using VB code in a wizard to make a new form and several controls and
want to set the event properties based on the mouse pick.

Here is a portion of the code and it works fine except the onMouseUp value
is set to a function which can't access the mouse coordinates, (unless I am
una ware of a method)



'Set frm = CreateForm
Set frm = Forms!form1
Set Line1.Container = CreateControl(frm.Name, acLabel, , "", "", 900, 900,
1200, 1200)
Line1.Container.Name = "Container1"
Line1.Container.OnMouseUp = "=CheckContainer()"

Can I use VB to write a sub procedure event handler like:
Sub Line1_mouseup (Button As Integer, Shift As Integer, X As Single, Y As
Single)

Thanks alot in advance
 

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