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
 Origin Forum
 buttons in multi-layer plot

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
bjorn Posted - 03/03/1999 : 7:04:00 PM
Hi,
it seems as a button created in a plot with several layers can only be activated from the same layer in which is was created(Orig.5). Is there any way to get away from this and have a "universal" button, available from all layers in a plot?
1   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 03/04/1999 : 7:22:00 PM
Any Text Object (and all buttons start as Text Objects) is associated with the Layer in which it was created - even if its attachment property is set to Page. By creating a button on a Graph, you will necessarily activate the layer the button is in when you use it. Conversely, if you activate this button through script, you will need to activate the layer before you can call its 'click' method.

The solution in this case is not to use a button at all. You should create a menu item. When the menu is activated, your script will run with the current layer still active.

Origin Professional users have the additional option of creating floating toolbars - like the Linear Fit tool - that similarly have no connection to any layer, and can be used with all layers.

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