Jump to content
Sign in to follow this  
f.lundin

RscCombo Issues (What am I doing wrong?)

Recommended Posts

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×