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
 reaction on mouse-click
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Fiat500

Germany
Posts

Posted - 08/01/2005 :  05:07:58 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5G SR2.1
Operating System: XP

Hello
I´m looking for a way to shift the value in an worksheet cell from 0 to 1 and back by clicking on it with the mouse. Do Origin know which cell is clicked/touched and is able to start an OC-programm then?? Is any internal function running when selecting a cell, where I can add special parts? I tried the AutoUpdateFunction in Columns with own C-functions, but this doesn´t react on mouse-clicks.
I need this function for controlling the behaviour of a programm. This programm reads many files and computes some values from the data, subject to the values (0/1) in the main-worksheet.
Thank you
Martin

easwar

USA
1965 Posts

Posted - 08/01/2005 :  5:04:39 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Martin,

This is currently not supported, but we will consider adding in a future version. Thanks for the post.

Easwar
OriginLab


Go to Top of Page

Fiat500

Germany
Posts

Posted - 08/04/2005 :  05:07:47 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you Easwar
I got it: In a endless-loop, the ScreenReader „LT_execute("dotoolbox -dh 2")“ is used for detecting a click and his position. Via „LT_get_var("X", &dXPos);“ the cell (or a complete column) is toggled. The loop terminates when clicked in an illegal region.
It´s not as comfortably as „Worksheet_SelectionChange“ in Excel, but it works.
Martin
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