How to get dX/dY when use enter function (lkie enterBox) wh

Guest
Dear All,

I use a enterBox function , when I enter a box (lower left) and then I
move mouse , it will show dx/dy in Cellview Window,
How do I get current dX/dY when I enter the first point ?

Thank you,
Charley
 
chentaison@gmail.com wrote, on 03/26/09 05:26:
Dear All,

I use a enterBox function , when I enter a box (lower left) and then I
move mouse , it will show dx/dy in Cellview Window,
How do I get current dX/dY when I enter the first point ?

Thank you,
Charley
You can use leGetRefPoint() and leSetRefPoint() to manipulate the reference
point - the dx/dy will be the difference between the current point and the
reference point - I don't believe there is any function to return the dx/dy, but
it should be trivial to calculate.

Regards,

Andrew.
 
On 3$B7n(B28$BF|(B, $B2<8a(B11$B;~(B16$BJ,(B, Andrew Beckett <andr...@DcEaLdEeTnEcTe.HcIoSm>
wrote:
chentai...@gmail.com wrote, on 03/26/09 05:26:

Dear All,

I use a enterBox function , when I enter a box (lower left) and then I
move mouse , it will show dx/dy in Cellview Window,
How do I get current dX/dY when I enter the first point ?

Thank you,
Charley

You can use leGetRefPoint() and leSetRefPoint() to manipulate the reference
point - the dx/dy will be the difference between the current point and the
reference point - I don't believe there is any function to return the dx/dy, but
it should be trivial to calculate.

Regards,

Andrew.
Hi Andrew ,

Since I use enterBox (to use leSetRefPoint) , but how do I to get
current cursor coordinate
( not use addPoint to get)through move mouse ?

Thank you,
Charley
 
chentaison@gmail.com wrote, on 03/30/09 02:39:
Hi Andrew ,

Since I use enterBox (to use leSetRefPoint) , but how do I to get
current cursor coordinate
( not use addPoint to get)through move mouse ?

Thank you,
Charley
hiGetPoint() ? Not entirely sure what you're trying to do .

Regards,

Andrew.
 
On 3$B7n(B30$BF|(B, $B2<8a(B5$B;~(B51$BJ,(B, Andrew Beckett <andr...@DcEaLdEeTnEcTe.HcIoSm>
wrote:
chentai...@gmail.com wrote, on 03/30/09 02:39:

Hi Andrew ,

Since I use enterBox (to use leSetRefPoint) , but how do I to get
current cursor coordinate
( not use addPoint to get)through move mouse ?

Thank you,
Charley

hiGetPoint() ? Not entirely sure what you're trying to do .

Regards,

Andrew.
Hi Andrew,

All I want to do is to get second coordinate(through hiGetPoint
or ...command) ****but not necessary press click left mouse****.
e.g. Ruler (Click start point then just move mouse then it will draw a
line by dX/dY .(start point && end point is always chenged by move
mouse) . How to do that ?

Thank you,
Charley
 
you can use enterpoint and use geWindowToEditPoint(windowId point) to
get the current coordinate.
not sure this is what you want. but you can refer to :
http://mcsite.blogspot.com/2009/04/cadence-skill-code-mouse-click-to.html


On Mar 31, 8:36 am, chentai...@gmail.com wrote:
On 3$B7n(B30$BF|(B, $B2<8a(B5$B;~(B51$BJ,(B, Andrew Beckett <andr...@DcEaLdEeTnEcTe.HcIoSm
wrote:



chentai...@gmail.com wrote, on 03/30/09 02:39:

Hi Andrew ,

Since I use enterBox (to use leSetRefPoint) , but how do I to get
current cursor coordinate
( not use addPoint to get)through move mouse ?

Thank you,
Charley

hiGetPoint() ? Not entirely sure what you're trying to do .

Regards,

Andrew.

Hi Andrew,

All I want to do is to get second coordinate(through hiGetPoint
or ...command) ****but not necessary press click left mouse****.
e.g. Ruler (Click start point then just move mouse then it will draw a
line by dX/dY .(start point && end point is always chenged by move
mouse) . How to do that ?

Thank you,
Charley
 
On 4$B7n(B3$BF|(B, $B2<8a(B3$B;~(B07$BJ,(B, William <eesu...@gmail.com> wrote:
you can use enterpoint and use geWindowToEditPoint(windowId point) to
get the current coordinate.
not sure this is what you want. but you can refer to :http://mcsite.blogspot.com/2009/04/cadence-skill-code-mouse-click-to....

On Mar 31, 8:36 am, chentai...@gmail.com wrote:



On 3$B7n(B30$BF|(B, $B2<8a(B5$B;~(B51$BJ,(B, Andrew Beckett <andr...@DcEaLdEeTnEcTe.HcIoSm
wrote:

chentai...@gmail.com wrote, on 03/30/09 02:39:

Hi Andrew ,

Since I use enterBox (to use leSetRefPoint) , but how do I to get
current cursor coordinate
( not use addPoint to get)through move mouse ?

Thank you,
Charley

hiGetPoint() ? Not entirely sure what you're trying to do .

Regards,

Andrew.

Hi Andrew,

All I want to do is to get second coordinate(through hiGetPoint
or ...command) ****but not necessary press click left mouse****.
e.g. Ruler (Click start point then just move mouse then it will draw a
line by dX/dY .(start point && end point is always chenged by move
mouse) . How to do that ?

Thank you,
Charley

Hi William,

Thank you for the information.
My problem is not how to get the first point , my problem is how to
get second point by move "mouse " , not through enter function (e.g.
enterPoint ...).
When you use bindkey (k) : Create Ruler command , you need to use
mouse to set the 1st point , and then the distance will be changed by
move mouse.
You don't click any point right.(I mean when 2nd point) , but it can
measure the distance . How to do it (to get 2nd coordinate by move
mouse not through enter
point )

Thank you,
Charley
 

Welcome to EDABoard.com

Sponsor

Back
Top