473,416 Members | 1,924 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

Open Popup at Mouse DblClick Coordinates

Access 2002...I need to open a popup at the location of a mouse
dblclick. Can anyone help with this? I can get the mouse X & Y, but
I'm not sure how to open a form in a specific location by code.

Thanks in advance

Aug 29 '07 #1
10 5831
On Aug 29, 10:25 am, Dave <KillnComput...@Verizon.Netwrote:
Access 2002...I need to open a popup at the location of a mouse
dblclick. Can anyone help with this? I can get the mouse X & Y, but
I'm not sure how to open a form in a specific location by code.

Thanks in advance
You could try using the OpenArgs and then parsing them in the open
event of the form.

For instance:
DoCmd.OpenForm stDocName, , , stLinkCriteria,
OpenArgs:="x=500;y=100"

Aug 29 '07 #2
HI! Thanks for the quick reply. No, that doesn't work.


On Aug 29, 10:38 am, steb...@gmail.com wrote:
On Aug 29, 10:25 am, Dave <KillnComput...@Verizon.Netwrote:
Access 2002...I need to open a popup at the location of a mouse
dblclick. Can anyone help with this? I can get the mouse X & Y, but
I'm not sure how to open a form in a specific location by code.
Thanks in advance

You could try using the OpenArgs and then parsing them in the open
event of the form.

For instance:
DoCmd.OpenForm stDocName, , , stLinkCriteria,
OpenArgs:="x=500;y=100"

Aug 29 '07 #3
Dave wrote:
HI! Thanks for the quick reply. No, that doesn't work.
The key word you missed is the word "Parse".

Enter the word OpenArgs in a code module, highlite it, and press F1.

I guess you can go to www.dictionary.com to get the definition of "parse".
>
On Aug 29, 10:38 am, steb...@gmail.com wrote:
>>On Aug 29, 10:25 am, Dave <KillnComput...@Verizon.Netwrote:

>>>Access 2002...I need to open a popup at the location of a mouse
dblclick. Can anyone help with this? I can get the mouse X & Y, but
I'm not sure how to open a form in a specific location by code.
>>>Thanks in advance

You could try using the OpenArgs and then parsing them in the open
event of the form.

For instance:
DoCmd.OpenForm stDocName, , , stLinkCriteria,
OpenArgs:="x=500;y=100"


Aug 29 '07 #4
On Aug 29, 12:51 pm, Dave <KillnComput...@Verizon.Netwrote:
HI! Thanks for the quick reply. No, that doesn't work.
I may not have been explicit enough
Here's what you need to do: (I have tested this and it works)
----------------------------------------
On the button click event (or wherever the code that opens your form):
DoCmd.OpenForm "davesForm", acNormal, OpenArgs:="100;1300"
----------------------------------------
In the open event of your form:
----------------------------------------
Private Sub Form_Open(Cancel As Integer)
Dim s As String
s = Me.OpenArgs & vbNullString
If Len(s) = 0 Then s = "10;10"
Dim strPosition() As String
strPosition = Split(s, ";")
'In this example, you know X is first and Y is second, so no need
to do any testing for x vs y
'being mixed up.
'you might want to add testing to make sure there are two and blah
blah
Dim xPos as integer
Dim yPos as integer
xPos = CInt(strPosition(0))
yPos = CInt(strPosition(1))

'Call the form move routine with the new position. You could add
height stuff too, if you chose
Call Me.Move(xPos, yPos)
End Sub
----------------------------------------

-Steve

Aug 29 '07 #5
Salad, I didn't realize that sarcasm was a part of these groups. Nice
to see that you're on board with making people want to come here.

On Aug 29, 12:49 pm, Salad <o...@vinegar.comwrote:
Dave wrote:
HI! Thanks for the quick reply. No, that doesn't work.

The key word you missed is the word "Parse".

Enter the word OpenArgs in a code module, highlite it, and press F1.

I guess you can go towww.dictionary.comto get the definition of "parse".


On Aug 29, 10:38 am, steb...@gmail.com wrote:
>On Aug 29, 10:25 am, Dave <KillnComput...@Verizon.Netwrote:
>>Access 2002...I need to open a popup at the location of a mouse
dblclick. Can anyone help with this? I can get the mouse X & Y, but
I'm not sure how to open a form in a specific location by code.
>>Thanks in advance
>You could try using the OpenArgs and then parsing them in the open
event of the form.
>For instance:
DoCmd.OpenForm stDocName, , , stLinkCriteria,
OpenArgs:="x=500;y=100"- Hide quoted text -

- Show quoted text -

Aug 29 '07 #6
Thanks Steve
On Aug 29, 1:03 pm, steb...@gmail.com wrote:
On Aug 29, 12:51 pm, Dave <KillnComput...@Verizon.Netwrote:
HI! Thanks for the quick reply. No, that doesn't work.

I may not have been explicit enough
Here's what you need to do: (I have tested this and it works)
----------------------------------------
On the button click event (or wherever the code that opens your form):
DoCmd.OpenForm "davesForm", acNormal, OpenArgs:="100;1300"
----------------------------------------
In the open event of your form:

----------------------------------------
Private Sub Form_Open(Cancel As Integer)
Dim s As String
s = Me.OpenArgs & vbNullString
If Len(s) = 0 Then s = "10;10"
Dim strPosition() As String
strPosition = Split(s, ";")
'In this example, you know X is first and Y is second, so no need
to do any testing for x vs y
'being mixed up.
'you might want to add testing to make sure there are two and blah
blah
Dim xPos as integer
Dim yPos as integer
xPos = CInt(strPosition(0))
yPos = CInt(strPosition(1))

'Call the form move routine with the new position. You could add
height stuff too, if you chose
Call Me.Move(xPos, yPos)
End Sub
----------------------------------------

-Steve

Aug 29 '07 #7
On Aug 29, 2:59 pm, Dave <KillnComput...@Verizon.Netwrote:
Thanks Steve

Did what you need?
Glad I could help.

Aug 29 '07 #8
Dave wrote:
Salad, I didn't realize that sarcasm was a part of these groups. Nice
to see that you're on board with making people want to come here.
You're welcome.

I, oftentimes, don't know the skill level of the people I respond to.

I thought "You could try using the OpenArgs and then parsing them in the
open event of the form." was sufficient advice to your response "No,
that doesn't work."

Next time you have a problem I'll write the code for you.
>

On Aug 29, 12:49 pm, Salad <o...@vinegar.comwrote:
>>Dave wrote:
>>>HI! Thanks for the quick reply. No, that doesn't work.

The key word you missed is the word "Parse".

Enter the word OpenArgs in a code module, highlite it, and press F1.

I guess you can go towww.dictionary.comto get the definition of "parse".

>>>On Aug 29, 10:38 am, steb...@gmail.com wrote:
>>>>On Aug 29, 10:25 am, Dave <KillnComput...@Verizon.Netwrote:
>>>>>Access 2002...I need to open a popup at the location of a mouse
>dblclick. Can anyone help with this? I can get the mouse X & Y, but
>I'm not sure how to open a form in a specific location by code.
>>>>>Thanks in advance
>>>>You could try using the OpenArgs and then parsing them in the open
event of the form.
>>>>For instance:
DoCmd.OpenForm stDocName, , , stLinkCriteria,
OpenArgs:="x=500;y=100"- Hide quoted text -

- Show quoted text -


Aug 29 '07 #9
On Aug 29, 3:08 pm, Salad <o...@vinegar.comwrote:
Dave wrote:
Salad, I didn't realize that sarcasm was a part of these groups. Nice
to see that you're on board with making people want to come here.

You're welcome.

I, oftentimes, don't know the skill level of the people I respond to.

I thought "You could try using the OpenArgs and then parsing them in the
open event of the form." was sufficient advice to your response "No,
that doesn't work."

Next time you have a problem I'll write the code for you.


On Aug 29, 12:49 pm, Salad <o...@vinegar.comwrote:
>Dave wrote:
>>HI! Thanks for the quick reply. No, that doesn't work.
>The key word you missed is the word "Parse".
>Enter the word OpenArgs in a code module, highlite it, and press F1.
>I guess you can go towww.dictionary.comtoget the definition of "parse".
>>On Aug 29, 10:38 am, steb...@gmail.com wrote:
>>>On Aug 29, 10:25 am, Dave <KillnComput...@Verizon.Netwrote:
>>>>Access 2002...I need to open a popup at the location of a mouse
dblclick. Can anyone help with this? I can get the mouse X & Y, but
I'm not sure how to open a form in a specific location by code.
>>>>Thanks in advance
>>>You could try using the OpenArgs and then parsing them in the open
event of the form.
>>>For instance:
DoCmd.OpenForm stDocName, , , stLinkCriteria,
OpenArgs:="x=500;y=100"- Hide quoted text -
>- Show quoted text -- Hide quoted text -

- Show quoted text -
I didn't know that Salad was synonymous with 'Smart-Ass'. My previous
comment was based on your posting of "I guess you can go to www.dictionary.com
to get the definition of "parse". "

I have one question for you Salad...Do you just monitor the groups to
degrade people that are trying to get started? With that, I only have
one other thing to say to you...Get a Girl Friend. You obviously
don't have a life.

Sep 3 '07 #10
Well Steb, I finally got freed up enough to work with your
suggestion. The expample that you've provided works, but I've found
it only opens where the control is at in the detail section. If
you're tryingt to use this on a Continuous Form, and the detail
section is only as tall as your control, then your XPos will probably
never get wider than 150. I think that I need to look at actual Mouse
Coordinates as it applies to Windows.

Any Advice?


On Aug 29, 2:07 pm, steb...@gmail.com wrote:
On Aug 29, 2:59 pm, Dave <KillnComput...@Verizon.Netwrote:
Thanks Steve

Did what you need?
Glad I could help.

Sep 18 '07 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Helmut | last post by:
Hi! I want to show a popup table just left-above my corsor. The following code works fine (on IE), but if there are scrollbars at the browser the popup is not positionend correctly: ...
18
by: Colin McGuire | last post by:
Hi - this was posted last weekend and unfortunately not resolved. The solutions that were posted almost worked but after another 5 days of working on the code everynight, I am not further ahead....
3
by: Tom | last post by:
I have a picturebox on my VB.NET form. The picturebox size mode is set to stretched. I then load an image into that form and display it. As the user moves the mouse over the form, I want to get and...
4
by: jodyblau | last post by:
I have search the Groups for help on this, and found some examples of people trying to do something similar to what I am trying to do, but wasn't able to get any of the examples to work. What I...
7
by: RobKinney1 | last post by:
The subject line sounds a little funny, let me quickly explain: I have created a custom control using ComboBox. But inside my class, I need to know when the user does NOT click my control. Of...
2
by: quickcur | last post by:
Hi, I have html like this: <div id="myCanvas" style="border:10px, black;position:relative;height:250px;width:100%;"> <img id="p" src="p.jpg"> </div> When user click the mosue, I would like ...
3
by: Dave | last post by:
I'm running the below script to open a popup window. Works great! I'd like to find out if there's a way to include Mouse Coordinates in the top and left parameters so that when my button is...
1
by: Dave | last post by:
I'm running the below script to open a popup window. Works great! How Can I get "Mouse Coordinates" (X,Y) to include them as Left and Top parameters so that the popup window opens "where the...
0
by: starkman | last post by:
Hello all, I have been having some problems with using Open CV to play an avi file. I am currently creating a eye input based system, where the mouse is replaced by an eye tracker. I am...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.