fubister 11 Posted March 25, 2017 Hi there, Im trying to build a script where you can chose an item from the list, and assign specific action to the item, and what I've come up with works great for this one item, my question now is how to add multiple items to the dialogbox using lbAdd and also recognize the selected item and do specific action for it lbCurSel. I hope I explained it well enough. private["_display","_list"]; disableSerialization; if(!isNull (findDisplay 3494)) then { _display = findDisplay 3494; _list = _display displayCtrl 2902; lbClear _list; _list lbAdd "Item 1"; }; private["_index"]; disableSerialization; if(!isNull (findDisplay 3494)) then { _index = lbCurSel (2902); hint "Selected item 1"; closeDialog 0; }; Share this post Link to post Share on other sites