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 for Programming
 Forum for Origin C
 method Make_tree not refresh

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
ollthi Posted - 12/14/2013 : 5:13:04 PM
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
1   L A T E S T    R E P L I E S    (Newest First)
ollthi Posted - 12/16/2013 : 12:00:05 PM
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

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