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
 Origin Forum
 create buttons in worksheets
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

newuser_ca

70 Posts

Posted - 05/16/2012 :  1:35:39 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin 8.6 in Windows 7.

I have a set of data in my worksheets. and I want to create a user interface (buttons, list etc) for the user to do extra analysis.

For example, I want to create a list of data in the user interface. The user can select some of them and click a button to create a plot.

I know Excel can create some buttons in the worksheet and then have some VBA codes to do what I want. What is the best way to create this kind of user interface in Origin?

Thanks.

Hideo Fujii

USA
1582 Posts

Posted - 05/16/2012 :  6:17:39 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi newuser_ca,

You can change any label (text, box, etc.) to a button, which runs a script by pressing.
In the screenshot below, "just a label" is just a label. But, you can right-click the label,
choose "Programming Control" flyout, then choosing "Button Up" at "Script, Run After",
you can run the script in the box below after changing this to a button. (You can
open this dialog by ALT+DoubleClick even after becoming a button.)
So, obviously
you need to have a script code in this way.



Many people have found that if you have a routine analysis procedure, making a analysis template:

http://www.originlab.com/index.aspx?go=Products/Origin/DataAnalysis/AnalysisTemplates

satisfies their needs without programming. See:
http://www.originlab.com/www/helponline/Origin/en/UserGuide/Analysis_Templates.html

or
http://www.originlab.com/www/helponline/Origin/en/mergedProjects/Tutorial/Tutorial/Creating_and_Using_Analysis_Templates.html

Hope this helps you to decide which approach you want to try first.

--Hideo Fujii
OriginLab
Go to Top of Page

newuser_ca

70 Posts

Posted - 05/18/2012 :  2:22:44 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Hideo,

Thank you very much for your information. It is very useful.
I will try and see which is the best.

By the way, is X-Function a good way to build GUI?
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