
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Of course. )
The next update for this class(CTabs) will be "Multiline Tab Mode".
Like here (multiple rows) :
Super. Too bad that tables and lists are just tables and lists for now. So far, they practically serve only as visualisation of data without any interactivity.
I would like, of course, to take and select the necessary columns/rows of lists/tables, and perform some manipulations with them - for example: there is a list, put checkboxes, or in general completely selected the necessary rows, and displayed in a separate window the general data on the selected rows .... Something like that would be super :)
However, to be able to do this, you need to add methods for manipulating this data. Maybe it already exists, but I don't know?
Great. It's a pity that tables and lists are just tables and lists. So far, they practically serve only as visualisation of data without any interactivity.
...
For most of the above, it's all there.
Selecting an item in lists(CListView) generates an event, which can be used to determine which item was selected and what current value was selected.
It is the same in tables(CTable). When selecting a table row, an event is generated, its parameters contain the row index ( dparam parameter), by which you can then get the values in the cells of this row using the CTable::GetValue() method:
//---
And in the mode of editing table cells an event is generated, in the parameters of which (parameter sparam) you can get a string with column number, with row number and current value in the cell being edited, in the format "column_row_text".
I would like, of course, to take and select the necessary columns/rows of lists/tables, and perform some manipulations with them - for example: there is a list, put checkboxes, or in general select the necessary rows, and display in a separate window the general data on the selected rows.... Something like that would be super :)
I will make separate classes for lists with checkboxes and radio buttons later.
1.)
I do not find an information, how I can add simple CLabel or CEdit controls to the form. (From objects.mqh)
They do not have a function like WindowPointer().
I can create these objects, but I can't attach them to the window.
The
does not work in this case...
2.)
Is the CComboBox a static object. Is it possible to modify the list of elements in the
ComboBox-Listview after the creation of the ComboBox?
Thank you!
Tol, something I can't win... There are two windows. From the first - from the main menu we open the second window, which has 4 tabs with icons. Each tab has its own table bound to it.
The problem is this: when opening the first window, the most recently built table is always visible, and it doesn't matter that before opening the window the tab is programmatically switched to the necessary one - it is selected as it should be, but the table on it is not the one bound to it, but the most recent one.
I made an example. Picture of the first window opening:
Screenshots of the MetaTrader trading platform
EURUSD, D1, 2016.11.03
MetaQuotes Software Corp., MetaTrader 5, Demo
As you can see, tab 1 is highlighted, but the table is visible that is bound to Tab 4 - it is written in the table itself in the column headers.
Further, if you switch tabs, the tables are placed where they are supposed to be, I highlighted the second tab with the mouse:
MetaTrader trading platform screenshots
EURUSD, D1, 2016.11.03
MetaQuotes Software Corp., MetaTrader 5, Demo
Back on the first one:
MetaTrader trading platform screenshots
EURUSD, D1, 2016.11.03
MetaQuotes Software Corp., MetaTrader 5, Demo
What am I doing wrong? Or is it a bug?
Files in the trailer. Indicator.
...
What am I doing wrong? Or is it a bug?
It works correctly with CTabs tabs. But for CIconTabs tabs I haven't yet made personal arrays in the library engine and automatic display of the contents of the selected tab when opening a dialogue box. This will be fixed in the next update.
But as a temporary solution, you can already track the opening of a dialogue box in a custom class and update the tabs as shown in the listing below:
//| Event handler|
//+------------------------------------------------------------------+
void CProgram::OnEvent(const int id,const long &lparam,const double &dparam,const string &sparam)
{
if(id==CHARTEVENT_CUSTOM+ON_OPEN_DIALOG_BOX)
{
if(lparam==m_window2.Id())
m_icon_tabs.ShowTabElements();
}
}
It works correctly with tabs of CTabs type. But for CIconTabs tabs I haven't yet made personal arrays in the library engine and automatic display of the contents of the selected tab when opening a dialogue window. This will be fixed in the next update.
But as a temporary solution right now you can already track the opening of a dialogue box in a custom class and update the tabs as shown in the listing below:
//| Event handler|
//+------------------------------------------------------------------+
void CProgram::OnEvent(const int id,const long &lparam,const double &dparam,const string &sparam)
{
if(id==CHARTEVENT_CUSTOM+ON_OPEN_DIALOG_BOX)
{
if(lparam==m_window2.Id())
m_icon_tabs.ShowTabElements();
}
}
I am trying to add an input field to a tab but it wont work.
then the function.
this object isn't attached to the Panel but is on thee chart.
and after deleting the chart the object remains