Ingo Chou Posted January 1, 2016 Share Posted January 1, 2016 Hello, How to set a item as the current selected item for CASTORGUI::GUISelect ? In addition, I also need to use these operator: find item, remove item, change item value and so on. Would you please add these functions? Thanks for your help. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted January 1, 2016 Share Posted January 1, 2016 Hello, I add the functions that I think usefulfindOptionSelected(withIndex); // return the option current selectedremoveOption(value); // remove an option value of select elementchangeItem(oldValue, newValue); // change an old value by the new value of the select elementThe documentation is updated Happy new year everybody. Quote Link to comment Share on other sites More sharing options...
Ingo Chou Posted January 2, 2016 Author Share Posted January 2, 2016 OK, Thank you and Happy New Year. These functions are really useful for me. Thanks for your help. Quote Link to comment Share on other sites More sharing options...
Ingo Chou Posted January 2, 2016 Author Share Posted January 2, 2016 Hello, It seems like there is a small problem: 'elSele' is undefined in function GUISelect::findOptionSelected();. Thanks. Quote Link to comment Share on other sites More sharing options...
Ingo Chou Posted January 2, 2016 Author Share Posted January 2, 2016 Hello, Would you please add this function: Set an item as the current selected option for CASTORGUI::GUISelect ? Sometimes I need to reset the GUISelect with the default value. Thanks for your help. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted January 2, 2016 Share Posted January 2, 2016 Hi, I add the function: selectedItem(item)elSele is fixedThe documentation is updated Quote Link to comment Share on other sites More sharing options...
Ingo Chou Posted January 3, 2016 Author Share Posted January 3, 2016 OK, It works now. Thanks for your timely reply and help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.