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
 method Make_tree not refresh
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ollthi

Canada
5 Posts

Posted - 12/14/2013 :  5:13:04 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello,

I have done a X-function to make a GUI using a treenode (exaclty like the exemple :http://www.originlab.com/doc/X-Function/tutorials/Construct-Controls-on-X-Function-GUI )
In a combo box I list all the workbooks available.

My problem is that it`s working only one time. After the first execution if I have deleted or added a workbook the tree is not updated.

How do I refresh my GUI?
Thank you in advance



thierry ollivaud

ollthi

Canada
5 Posts

Posted - 12/16/2013 :  12:00:05 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

I try to be more precise :
here is my _make_tree :

if ( strcmp("INFORMATION", lpcszVarName) == 0 ) // check variable by name
{

GETN_USE(tr);
// Choice of all the present sheet:
foreach(WorksheetPage wksPg in Project.WorksheetPages)
{
MySTDUfile = MySTDUfile + wksPg.GetName() + "|";
}

GETN_MULTISEL_LISTBOX(STDUfile, "STDU file(s)", 1, MySTDUfile)

return 0; // successful

}
return -1; // failed


How can i do to pass in this function each time and not only at the initialisation?

If i call this function my dialog box his ok but the information are not (user choice are false)
Thank you in advance

thierry ollivaud
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