OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: L!nk on 12 Mar 2008, 17:38:30

Title: Double clicking in list
Post by: L!nk on 12 Mar 2008, 17:38:30
How do I do this??

Doolittle does it in his CTI and I cant find his way. Any help?

When I double click on a list entry it must display the label of the list entry.

Thx,
L!nk
Title: Re: Double clicking in list
Post by: Mandoble on 12 Mar 2008, 18:01:54
Add the onLBDblClick event handler to your listbox.

Code: [Select]
class YourDlg
{
   ... blah blah blah;
   ... blah blah blah;

   class C_YOUR_LIST: RscListBox
   {
      ... blah blah blah;
      ... blah blah blah;
      onLBDblClick = "[""onLBDblClick"", _this] call YourDlgEventHandlerFunction";
   };
};