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
 Origin Forum
 create buttons in worksheets

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
newuser_ca Posted - 05/16/2012 : 1:35:39 PM
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.
2   L A T E S T    R E P L I E S    (Newest First)
newuser_ca Posted - 05/18/2012 : 2:22:44 PM
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?
Hideo Fujii Posted - 05/16/2012 : 6:17:39 PM
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

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