2/15/2009 1:17 PM | |
Joined: 1/4/2008 Last visit: 9/26/2024 Posts: 703 Rating: (96) |
Hello, the coordinates of an object can be accessed in VBS (both read and write) as Item.Left and Item.Top Regards Sydney |
2/15/2009 7:00 PM | |
Posts: 23 Rating: (1) |
thanks a lot. |
2/15/2009 10:25 PM | |
Posts: 2661 Rating: (279)
|
Hi zapotek, You can do this in many ways... You can manipulate the Postion X & Position Y attributes in the object itself or you can change position attributes "outside" the object (in a button for example). In VBS you can use the Top and Left attributes. Find attached a simple example in VBS. In this exampleeverytime you click the button, the circle moves by 20 X and 20 Y. Regards AttachmentNewPdl1.ZIP (274 Downloads) |
Last edited by: Phantom75 at: 2/13/2009 10:28 PMLast edited by: Phantom75 at: 2/13/2009 10:26 PM |
|
2/16/2009 10:48 AM | |
Joined: 9/27/2007 Last visit: 12/18/2020 Posts: 993 Rating: (102)
|
Hi, thanks for publishing the script. |
Learn more about visualization - visit the HMI courses of Siemens AG! |
|
2/16/2009 10:15 PM | |
Posts: 2661 Rating: (279)
|
Hey zapotek, How come I do not even get a thanks (let alone any stars)from you when I answered your (more or less) identical question in the following thread??? object position change by a TAG status You'll sure find it hard to get on my buddy list, pal !! On a serious note, one of the moderators should cut my reply in the above thread and paste the in to this thread (and close the above thread) Regards |
2/16/2009 11:34 PM | |
Posts: 23 Rating: (1) |
To Phantom75: yes you right about your criticism about me. After your answer about the previous question ; i managed to go forward. thanks again... |
Follow us on