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
 create rectangle graphical object
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

asenv

35 Posts

Posted - 10/05/2010 :  09:48:51 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 8.1G SR3
Operating System: windows 2000 pro

I would like to create a rectangle (graphical object) with labtalk command. I assume then i can set my coordinates with gobject command rect.top=xx; rect.width=xx; rect.height=xx; rect.left=xx; and also the other properties like color ... , but I could not find the command to create rectangle. Can you tell it to me?

Thanks
Asen

cpyang

USA
1406 Posts

Posted - 10/05/2010 :  6:40:24 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Looks like gObject.Create method was never added, so for now you will need to use the Draw command to create it first. The option to create a Rect is -b but looks like that was never documented either!


draw -p 3 5;// set current point in axes coordinate
draw -n myRect -b;// create a new Rect with name specified by -n
gobject aa=myRect;//attach it to a GObject, or use myRect directly
aa.DX=2;
aa.dy=1.5;

Go to Top of Page

asenv

35 Posts

Posted - 10/11/2010 :  10:51:26 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Very many thanks Cpyang!!!
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