Download MetaTrader 5
To add comments, please log in or register
Let your idle PCs do something useful. Join MQL5 Cloud Network!
Amir Yacoby
1112
Amir Yacoby 2015.08.02 00:17 

I try to use CListView from standard lib. 
I add 3 lines, and give the x2 value of 1000 - to suffice the entire row.
But not all the row is on the CListView - it is cut on the 54th position.
Anyone can point the reason? 

Thanks in advance

//+------------------------------------------------------------------+
//|                                                     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,35,35,1000,150))
      return(-1);
   clist.ItemAdd("new item 1234567890123456789012345678901234567890Forty67890Fifty67890Sixty67890");
   clist.AddItem("new item 1234567890123456789012345678901234567890Forty67890Fifxx67890Sixty67890");
   clist.AddItem("new item 1234567890123456789012345678901234567890Forty67890Fifzz67890Sixty67890");
//---
   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)
  {
   clist.OnEvent(id+CHARTEVENT_CUSTOM,lparam,dparam,sparam);
   
  }
/
To add comments, please log in or register