Home   Help Search Login Register  

Author Topic: Double clicking in list  (Read 1023 times)

0 Members and 1 Guest are viewing this topic.

Offline L!nk

  • Members
  • *
Double clicking in list
« 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

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Double clicking in list
« Reply #1 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";
   };
};