Matt Klein Posted April 2, 2004 Posted April 2, 2004 Does anyone know a way to capture the position of the cursor(insertion point) and/or the mouse pointer? It seems like we should be able to do this as in Layout mode, if you have the Object Size dialog showing, anytime you click gives you the coordinates of the mouse. This would be useful for positioning windows based on a mouse click. FileMaker Version: Dev 7 Platform: Windows 2000
Charles Delfs Posted April 3, 2004 Posted April 3, 2004 just out of curiosity, why would you want to pos a window based on a click, could you not just drag the window then? I could see neat applications with maps and the like though. Charles
Matt Klein Posted April 9, 2004 Author Posted April 9, 2004 I am not really worried about the user moving the window once it is positioned. Let's say you have a layout viewed as a list. You have a button on each record in the list that might bring up a window to show the details of the record. It would be nice to be able to position the window next to the button that the user clicks on so their eyes don't have to go to far to see the new window that came up as a result of the mouse click.
B-Man Posted April 21, 2004 Posted April 21, 2004 If you have a field next to every button on the layout couldn't you pass the field name using a script parameter and use the FieldBounds function. This will not get you the exact location of the mouse but it should be close. FieldBounds ( Get(FileName); Get ( LayoutName ); Get ( ScriptParameter )) Good luck Brian
B-Man Posted April 21, 2004 Posted April 21, 2004 OOOPS? Only works if your layout does not scroll. If you are viewing as a list you would more than likely be scrolling. Sorry, Brian FileMaker Version: Dev 7 Platform: Windows 2000
Singlequanta Posted April 22, 2004 Posted April 22, 2004 Gday; there is a plugin called WindowUtility (i forget who makes it but if you search filemaker.com's plugin database you can find it there) I use it in one of my solutions and as I recall it can capture the mouse position. If their plugin doesn't work i am sure there are a variety of plugins that do. Cheers SG
Recommended Posts
This topic is 7781 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now