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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 possibilities of event handling
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

TreeNode

64 Posts

Posted - 12/07/2010 :  7:50:02 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

TreeNode

64 Posts

Posted - 12/09/2010 :  09:22:16 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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!!
Go to Top of Page

Iris_Bai

China
Posts

Posted - 12/09/2010 :  8:39:34 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000