//--- Table reconstructionvoid Rebuilding(constint columns_total,constint rows_total,constbool redraw=false);
//--- Adds a column to the table at the specified indexvoid AddColumn(constint column_index,constbool redraw=false);
//--- Deletes a column in the table at the specified indexvoid DeleteColumn(constint column_index,constbool redraw=false);//--- Adds a row to the table at the specified indexvoid AddRow(constint row_index,constbool redraw=false);
//--- Deletes a row in the table by the specified indexvoid DeleteRow(constint row_index,constbool redraw=false);//--- Deletes all linesvoid DeleteAllRows(constbool redraw=false);
//--- Clears the table. Only one column and one row remain.void Clear(constbool redraw=false);
If you just need to update the values, you don't need to delete anything.
If you need to change the number of rows in the table, one of the ways to do it is shown.
The second way is to use the CTable::Rebuilding() method. But then you will have to set some table properties again (headers, column widths, etc.).
Thanks, I'll have another look.
But I have CCanvasTable. What is the difference between CCanvasTable and CTable? It seems that I create a table with CCanvasTable normally....
Thanks, I'll have another look.
But I have CCanvasTable. What is the difference between CCanvasTable and CTable? I think I can create a table with CCanvasTable normally....
Download the latest version of the library: EasyAndFast and updated files with classes in this article: Trade Expert Advisor with GUI: Filling it with functionality (Part II).
Use the CTable class. CCanvasTable is a very old version with minimal features.
I downloaded it, but I can't find IsSortedColumnIndex() method or its analogue.
...updated files with classes in this article: Trading Expert Advisor with GUI: Filling with functionality (Part II)
CTable class:
...
DeleteColumn(), DeleteRow() also disappeared.
Maybe I just need to be a little more careful?
...updated files with classes in this article: Trading Expert Advisor with GUI: Filling with functionality (Part II)
CTable class:
I apologise, my mistake. I'm copying to one place and looking in another MetaEditor. Thanks.