T O P I C R E V I E W |
coll@inia. |
Posted - 12/06/2012 : 12:35:19 PM Origin Ver.8.5 Operating System:win7
I have graphs in which there are about a hundred objects drawn (mostly text and arrows) and one polygon (Labtalk name: polygon).
How can I select/activate that polygon by labtalk scripts?
The reason is for then to apply some menu -e options to the selected object (in this case a polygon).
In other words, I am trying to do the same by scripting than manually clicking on the polygon to select it.
I tried many different possible ways with no success. No option is offered in the web nor in the guides. Still it looks to me like something that should be easy to do!
Many thanks for your help! julio |
5 L A T E S T R E P L I E S (Newest First) |
coll@inia. |
Posted - 12/22/2012 : 05:19:05 AM I just found out a solution to the "front-back" problem.
When I first draw the polygon now, I right click on it and check out the "push to back of data" option. It is not the default option. Now everything else in the graphic goes in front of the polygon after the script execution!
Hope it helps to anyone interested...... & Thank you for your ideas cheers, julio |
coll@inia. |
Posted - 12/11/2012 : 04:22:39 AM Thanks for your attempts Greg.
I know the name of the object, it is polygon. I just want to move polygon behind (back) to the other objects present in the window. I only know of a way to do that and it is by: menu -e 35497; However to apply that menu I need to select first the polygon!!! That was my question.
Any other ideas?? Is there any other command to move behind polygon?
thanks, julio |
greg |
Posted - 12/10/2012 : 1:15:27 PM There aren't many commands that mimic user behavior - such as clicking on an object to select it. That's what users are for! ;-)
Such a command - if it existed - would of course need to specify what object, but if you know the object name then you probably can already do what you want to the object through script.
Right-click on the object and go to Programming Control to find the Object Name. Then type ObjectName.= in the Script or Command Window and press Enter to see the list of properties you can potentially change. |
coll@inia. |
Posted - 12/07/2012 : 03:40:14 AM Thank you but I already checked it. No ideas for just selecting a graphic object that I can see there!
Thanks, julio |
cdrozdowski111 |
Posted - 12/06/2012 : 9:21:05 PM I'm not sure if it is supported in your version of OL, but you can check out Graphic Objects:
http://wiki.originlab.com/~originla/wiki/index.php?title=LabTalk:Data_Types_and_Variables#Graphic_Objects |