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
 select /activate graphic objects
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

coll@inia.

Spain
125 Posts

Posted - 12/06/2012 :  12:35:19 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

cdrozdowski111

USA
247 Posts

Posted - 12/06/2012 :  9:21:05 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

coll@inia.

Spain
125 Posts

Posted - 12/07/2012 :  03:40:14 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you but I already checked it.
No ideas for just selecting a graphic object that I can see there!

Thanks, julio
Go to Top of Page

greg

USA
1378 Posts

Posted - 12/10/2012 :  1:15:27 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.
Go to Top of Page

coll@inia.

Spain
125 Posts

Posted - 12/11/2012 :  04:22:39 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

coll@inia.

Spain
125 Posts

Posted - 12/22/2012 :  05:19:05 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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