f.lundin 11 Posted April 23, 2014 Greetings, I am throwing myself into the jungle of GUI. I am stuck. I googled and followed as many of you script creators suggestions examples and so on but I have no luck. I am still facing the same problem. I can not get data from a script into a RscCombo. I will share the whole mission file. it only contains data relevant for this issue, I see no need to copy and paste the code from all files into the thread unless requested. This is the mission on my dropbox https://www.dropbox.com/sh/h5q1lxo2yhnaux1/OSmI5FEiFX. I apprechiate any help I can get on this subject. Share this post Link to post Share on other sites
f.lundin 11 Posted April 24, 2014 Do anyone have any suggestions? Share this post Link to post Share on other sites
dna_uk 30 Posted April 24, 2014 fnc_init_open = { _display = ( _this select 0 ); _ctrlCombo = ( _display displayCtrl 2101 ); _ctrlCombo lbAdd "Test"; _ctrlCombo lbAdd "Test"; _ctrlCombo lbAdd "Test"; _ctrlCombo lbAdd "Test"; _ctrlCombo lbSetCurSel 0; }; Share this post Link to post Share on other sites
Jay1990 10 Posted April 24, 2014 You can call your function in the init of your unit. this addAction["GUI",{_handle = createDialog "test";call fnc_init_open;}] Don't know why it doesn't work with the onload. Share this post Link to post Share on other sites
f.lundin 11 Posted April 24, 2014 fnc_init_open = { _display = ( _this select 0 ); _ctrlCombo = ( _display displayCtrl 2101 ); _ctrlCombo lbAdd "Test"; _ctrlCombo lbAdd "Test"; _ctrlCombo lbAdd "Test"; _ctrlCombo lbAdd "Test"; _ctrlCombo lbSetCurSel 0; }; this works better for what i want to use it for. Thank you for your help, do you know why it may not been working the way i did it? You can call your function in the init of your unit.this addAction["GUI",{_handle = createDialog "test";call fnc_init_open;}] Don't know why it doesn't work with the onload. Thank you. Ill remeber this solution aswell. Share this post Link to post Share on other sites