|
andrewdsto
Australia
Posts |
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 |
|