Forum Discussion

sudhir_optima's avatar
sudhir_optima
Contributor
13 years ago

how to get X,Y coordinates of selected item runtime

We have created a Function to select particular item by its name. We also have another function which drag this selected field(Object) to some position.( Here it accepts a,b,c,d ). But we a,b ( Selected position) may change. Instead I want to Select that item and want to capture the a,b position of that object runtime.



How it is possible ?

3 Replies

  • I have expored thta there is WindowToScreen and ScreenToWindow method for this. But i dont know how to use them.



    I want to drag field and drop it into one of the object area. Through Drag method we can do this.Again Drag method need a,b,c,d parameters.But I ant to get those coordinates runtime ( Not using Recording ) Will any one help me out.



    Suppose Axispanel is my object name. We can use WindowToScreen method on this object as



    Axispanel.WindowToScreen(x,y)  Please correct is this correct ? But then how to get those x, y ?