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
 Developing Script GUIs
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

lunchpack

Germany
20 Posts

Posted - 01/23/2015 :  02:48:36 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. 9.0 and Service Release SR0 (Select Help-->About Origin):
Operating System: Win8 x64

Hi,
does anyone know if it is possible to create his own GUIs in origin? Something like the button edit mode, but more advanced? What I want to do is create a control panel with different radio buttons, some space to view and change variables and some buttons to execute script files. So, basically, I want to create a Panel that looks a lot like that one (this is an Origin Panel that pops up when you plot a Matrix in 2D with slices...)

https://dl.dropboxusercontent.com/u/9963379/OriginGUI.PNG

So, is there any possibility to do that?

The only alternative I found so far for interactive scripts is asking the user for input by calling getn. For complex stuff, thats not really practical, though. And it's terribly confusing.

Thanks a lot and best regards,
lunchpack

snowli

USA
1395 Posts

Posted - 01/23/2015 :  10:52:36 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello,

We do have UIM toolbar to easily add controls, e.g. buttons, radios, checkboxes, edit boxes, etc. and script to execute behind them. Before Origin 2015 sr1, it was only for OriginPro. Since Origin 2015 sr1, it's available for Origin users as well.

You can check Help: About Origin to see if you have OriginPro or Origin.

Here is a quick help link for it
http://www.originlab.jp/doc/Quick-Help/UIM-editing-programming

Here is document for it.
http://cloud.originlab.com/pdfs/UIM_Manual.pdf

Also, choose File: Open... Under Samples\UIM\ folder, there is an UIM.opj as an example.


Thanks, Snow
OriginLab Corp.

Edited by - snowli on 01/23/2015 11:22:14 AM
Go to Top of Page

lunchpack

Germany
20 Posts

Posted - 01/23/2015 :  7:22:43 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks, snow, for pointing out the documentation on the UIM module. I will have a look into it and I think the UIM will probably be sufficient for my needs.
The alternative thing I've found is the Origin Developer Kit, but that seems a little bit oversized for what I need to do.

Best regards, lunchpack
Go to Top of Page

cdrozdowski111

USA
247 Posts

Posted - 01/24/2015 :  10:33:16 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
If you do find you need something more than UIM, I would proffer that, before you delve into Dialog Builder, you at least take a look at the GETN functionality built into Origin C ( http://www.originlab.com/doc/OriginC/guide/GetN-Dialog ).

Building dialogs with Dialog Builder requires that you acquire, install, and learn the basics of Visual C++ (Visual Studio) to create the dialog itself and then use Origin C to code the logic.

GETN allows you skip VC++, letting you focus on the Origin C code. Since you have to write Origin C code either way, why make your life more complicated?

Edited by - cdrozdowski111 on 01/24/2015 10:35:07 AM
Go to Top of Page

lunchpack

Germany
20 Posts

Posted - 01/29/2015 :  12:29:55 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi cdrozdowski111,

thanks for the GETM hint in Origin C. This does help a lot.
I'm still trying to get it all done using the UIM buttons, but it's a bit of a mess to be honest. I'd really love to have a neat and clean panels where I could put all the controls. When I use an empty graph window, however, I can't use listboxes and comboboxes (as they are not scaleable). It's a pity, that Origin doesn't have dedicated windows for that, that would make it just perfect.
Go to Top of Page

lkb0221

China
497 Posts

Posted - 01/29/2015 :  10:02:05 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi, Lunchpack

What do you mean by "scaleable"?
Notice that those UIMs are also floating objects on the graph layer, so you can save the graph/layout window as a template for later use.
You can also put those UIMs outside the graph page, which means you can arrange them nicely in the gray area of the graph window, and save it as template.

Zheng
OriginLab
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