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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 create rectangle graphical object

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
asenv Posted - 10/05/2010 : 09:48:51 AM
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
2   L A T E S T    R E P L I E S    (Newest First)
asenv Posted - 10/11/2010 : 10:51:26 AM
Very many thanks Cpyang!!!
cpyang Posted - 10/05/2010 : 6:40:24 PM
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;


The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000