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
 Need help deleting objects (buttons)

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
andrewdsto Posted - 06/20/2008 : 03:43:18 AM
Origin Version (Select Help-->About Origin): 8 pro
Operating System:win XP

Hi, how do you delete an object such as a button from a window (either plot or worksheet) using scripting.

For example if I have a button called Push1 (which runs some script) in a graph but I then want to delete this button with script, how can I do it?

This problem arises when I merge 4 plots into one and the buttons I use within each plot get merged as well. I don't require these buttons in the new plot window and therefore wish to remove them as they encroach upon the plot itself.
Alternately if I can merge the 4 plots but not copy the buttons this would also work for me

I can remove the buttons manually by going into button edit mode, highlighting them all and deleting them but this is laborious and defeats the purpose of scripting and automation when it has to be performed over and over.

thanks for any help
Andrew
1   L A T E S T    R E P L I E S    (Newest First)
andrewdsto Posted - 06/20/2008 : 03:53:45 AM
Hi, I have found that I can treat all of the buttons as text labels and simply run

lab -r Push1;

And the script deletes it. Not sure if this is intended but it appears to work.

thanks

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