Author |
Topic |
|
TreeNode
64 Posts |
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!! |
|
Penn
China
644 Posts |
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 |
|
|
TreeNode
64 Posts |
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!! |
|
|
Iris_Bai
China
Posts |
|
|
Topic |
|
|
|