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
 Forum for Origin C
 possibilities of event handling

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
TreeNode Posted - 12/07/2010 : 7:50:02 PM
Origin Ver. and Service Release: Origin 8, SR6
Operating System: Windows XP

Hi,

are there possibilities to react on special events in origin?
I could not find any examples yet...

For example I want to run OriginC function or Labtalk script when
I hide a GraphLayer from a GraphPage with: right mouse-click -> hide Layer

I found methods like OnPageChange() or OnLayerChange() in relation to DynaControl.
But I dont know how to use it. I found no examples.

Can anybody help?


|-- TreeNode
...|-- a??
...|-- ha!!
3   L A T E S T    R E P L I E S    (Newest First)
Iris_Bai Posted - 12/09/2010 : 8:39:34 PM
Hi,

Yes, the hide layer event will be implement in Origin8.5 next release version.

http://ocwiki.originlab.com/index.php?title=OCGuide:Creating_and_Accessing_Graphical_Objects#Programming_Control
This page shows how to setup on GraphObject to execution LT script when a GraphObject changed (moved, selected, resized...).

Iris
TreeNode Posted - 12/09/2010 : 09:22:16 AM
Hi Penn,

thanks for reply! I think I will try to install the DeveloperKit, and view the examples.
What do you mean with future builds. Do you mean in the new versions of Origin, for example Origin 8.5?

Are there other ways of event handling in relation to a GraphLayer? I found possibility of executing script
when changing a GraphObject like a GROT_LINE. There is a property node in Format-Tree: "Script"
where I can set a script to be executed when changing position of GraphObject or something like that.


|-- TreeNode
...|-- a??
...|-- ha!!
Penn Posted - 12/08/2010 : 10:44:03 PM
Hi TreeNode,

This class DynaControl is only available in the Origin installing DeveloperKit. In Origin 8 SR6, if you have installed DeveloperKit, you can find some examples in the folder <Origin Installation Directory>\Samples\DeveloperKit\Dialog Builder\. In the ActiveLayer folder, you can see an example (ActiveLayer.c) about the active layer, events on the layer are included (read the header file ActiveLayerDlg.h).

However, there is not an event for the behavior of hiding layer yet, and we will add this to the future build. Thank you for bringing this up.

Penn

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