The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Screen Reader position
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

bf1978

USA
Posts

Posted - 05/06/2005 :  2:56:52 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
How can I access continuously the Screen Reader position? I know that the X and Y variables contain these positions AFTER the Screen Reader exited (QuitProc, EndProc etc.) But I would need the values while the Screen Reader is running.

It is displayed in the Data Display control, but I didn't find the reference where is it written.

Mike Buess

USA
3037 Posts

Posted - 05/06/2005 :  4:16:14 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
X and Y are the coordinates at the cursor position. For documentation, look for LabTalk's doToolBox in the programming guide.

Mike Buess
Origin WebRing Member
Go to Top of Page

bf1978

USA
Posts

Posted - 05/06/2005 :  4:21:53 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The dotoolbox help says the following:
"X, Y -- The X and Y coordinate values of the current cursor position. The values update each time you click the cursor."

So how can I get the cursor position while dragging the Screen Reaser cursor for example? I need the same realtime values as they appear on the Data Display control.
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 05/06/2005 :  4:51:53 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You need to use the PointProc macro. Search the forum for 'PointProc' and 'getpts' and you'll find several examples.

...Even that won't give you real time values. It will only give you the values on click or enter.

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 05/06/2005 4:53:23 PM
Go to Top of Page

bf1978

USA
Posts

Posted - 05/06/2005 :  6:37:07 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You are right, pointproc won't give the real time values. But my question is still the same: how can I get them?

It must be possible somehow, because they are displayed in that Data Display control.
Go to Top of Page

cpyang

USA
1407 Posts

Posted - 05/06/2005 :  7:55:36 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Maybe this is not documented, there is another macro that you can defined called OnTool, which also receive two argument
%1 = tool index, should be 2 for screen reader
%2 = event id, 1 for start of tool, 100 for tracking(dragging) of tool and 0 for end of tool. Tool ID = 0 during tracking, it seems.

X and Y are available during tracking. try this

def OnTool {
type "tool=%1, event=%2, x= $(x), y = $(y)";
};



CP


Go to Top of Page

bf1978

USA
Posts

Posted - 05/06/2005 :  9:18:59 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
CP,

perfect, thanks!


bf
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000