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
 Custom Dialog via X-Function
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

cdrozdowski111

USA
247 Posts

Posted - 12/17/2012 :  10:34:00 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OriginPro 9.0.0 (Student Version), Win7 64-bit, running in VMware Fusion 5.0.2

I created a custom dialog (resource DLL, header files, etc). In a header file, I declared a class for the dialog whose constructor is as follows:

SelectListDialog(const string& availList, string *selList, const string& dlgTitle = "", const string& dlgDesc = "") : Dialog(IDD_SELECT_LIST_DIALOG, "SelectListDialog_64")
{
}

How can I wrap the the creation of the dialog (along with a call to it's DoModal(GetWindow()) method in an X-Function?

And how can I keep all my files (inc compiled X-Function) within a folder in my User directory?

cpyang

USA
1406 Posts

Posted - 12/17/2012 :  2:56:10 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
We will provide an example today or tomorrow.

CP
Go to Top of Page

cdrozdowski111

USA
247 Posts

Posted - 12/18/2012 :  08:50:32 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
This is no longer necessary. But thank you anyway.
Go to Top of Page

Iris_Bai

China
Posts

Posted - 02/17/2013 :  9:28:47 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Please see http://ocwiki.originlab.com/index.php?title=OCGuide:Creating_Custom_Dialog

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