Discussion of article "Graphical Interfaces X: Updates for the Rendered table and code optimization (build 10)" - page 2

 

Alexander:
Когда я закомментировал в файле MainWindow.mqh эксперта TestLibrary07 2 строки 22 и 23 //m_window.AutoXResizeMode(true); и //m_window.AutoYResizeMode(true); то все стало почему то работать нормально.

As a quick fix, in the WndEvents.mqh file, in the CWndEvents::CheckExpertSubwindowNumber() method, replace this condition...:

//+------------------------------------------------------------------+
//| Checking and updating the number of the Expert Advisor window |
//+------------------------------------------------------------------+
void CWndEvents::CheckExpertSubwindowNumber(void)
  {
//--- Exit if it is not an expert
   if(PROGRAM_TYPE!=PROGRAM_EXPERT)
      return;
//---

...
  }

... extended version:

//+------------------------------------------------------------------+
//| Checking and updating the number of the Expert Advisor window |
//+------------------------------------------------------------------+
void CWndEvents::CheckExpertSubwindowNumber(void)
  {
//--- Exit if (1) it is not an EA or (2) the EA GUI is in the main window
   if(PROGRAM_TYPE!=PROGRAM_EXPERT || !EXPERT_IN_SUBWINDOW)
      return;
//---

   ...
  }
 
Yes, everything works now. After looking at these experts I have a question about the purpose of the input line in TestLibrary07. I thought that you can enter text there and when you press Enter, this text will appear on the next panel where all lines are located, but I think it is not so. And the very logic of inserting this text input line suggests that this is what it is intended for.
 
Alexander:
Yes, everything works now. After looking at these experts I have a question about the purpose of the input line in TestLibrary07. I thought that you can enter text there and when you press Enter, this text will appear on the next panel where all lines are located, but I think it is not so. And the very logic of inserting this text input line suggests that this is what it is intended for.
No, this is just an example to show that an element of CTextBox type can work in two modes. The first field is single-line and the second is multi-line. There is no such logic as you have described. If it was, it would be in the description (in the article).
 
I just admire the volume and quality of work.
Thank you so much!
I look forward to continuing to publish.
 

Automatic help on the current version

Files:
index.zip  3996 kb
 
Just great!
This is very timely.
And for libraries like this, it's a must.
We're reaching a new level of standardisation.... )
Thanks Rashid!
Rashid Umarov
Rashid Umarov
  • www.mql5.com
Профиль трейдера
 
Rashid Umarov:

Automatic help on the current version


Thanks. Needed.
 
In your case, while developing your MQL-application, set the Optimize parameter in the"MetaTrader 5/Config/metaeditor.ini" file to zero, as shown below:
...
[Experts]
Author=Copyright 2015, MetaQuotes Software Corp.
Address=http://www.mql5.com
Optimize=0
...

//---

Then everything will compile quickly:

0 error(s), 0 warning(s), compile time: 351 msec                1       1

//---


Question: where to find this parameter Optimize, I have 1755 and 1816 versions on different computers, but there is no such parameter?

 
IuriiPrugov:

...

Question: where to find this parameter Optimise, I have 1755 and 1816 versions on different computers, but there is no such parameter?

You can quickly find it in notepad like this: