CListView simple test

 

For some reason I can't isolate the event handling of this object.

Here's a simple expert code which uses CListView, the click event is not triggering the event on CListView.
Any advice? thx

 

 

//+------------------------------------------------------------------+
//|                                                     testlist.mq4 |
//|                        Copyright 2013, MetaQuotes Software Corp. |
//|                                              https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2013, MetaQuotes Software Corp."
#property link      "https://www.mql5.com"
#property version   "1.00"
#property strict
#include<Controls/ListView.mqh>
CListView clist;
//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
  {
//---
   if(!clist.Create(0,"my list",0,5,5,250,150))
      return(-1);
   clist.ItemAdd("new item");
   clist.AddItem("new item2");
//---
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
//---
   clist.Destroy(reason);
  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
//---

  }
//+------------------------------------------------------------------+
void OnChartEvent(const int id,
                  const long &lparam,
                  const double &dparam,
                  const string &sparam)
  {
//--- handling the event
   clist.OnEvent(id,lparam,dparam,sparam);
  }
//+------------------------------------------------------------------+
Reason: