Hello. How to fix compilation error?
'ON_END_CREATE_GUI' - undeclared identifier Programme.mqh 307 29
Hello. How can I fix the compilation error?
'ON_END_CREATE_GUI' - undeclared identifier Programme.mqh 307 29
Update library:
EasyAndFastGUI - library for creating graphical interfaces
And library files attached to the article.
File name | Comment |
---|---|
MQL5\Include\EasyAndFastGUI\Controls\Table.mqh | Updated CTable class |
MQL5\Include\EasyAndFastGUI\Keys.mqh | Updated CKeys class |
Hi Anatoli,
first of all, congratulatios for the great work.
I tried to compile your files, but maybe a constant is missing, in particular this: "ON_END_CREATE_GUI" in Program.h.
Peraphs to be added in the defines.h file?
Thanks in advance
Manuele
Hi Anatoli,
first of all, congratulatios for the great work.
I tried to compile your files, but maybe a constant is missing, in particular this: "ON_END_CREATE_GUI" in Program.h.
Peraphs to be added in the defines.h file?
Thanks in advance
Manuele
#define ON_END_CREATE_GUI (42)
Has worked for me.
I download the attachments. It could not resolve the following includes
#include <EasyAndFastGUI\WndEvents.mqh>
#include <EasyAndFastGUI\TimeCounter.mqh>
I have verified they did not download with the attachments
Anatoly, please advise me on this point.
A standard chart has been added to Fig.11. The question is as follows. Does it have a unique id? Either I did not look for it well, or it is hidden somewhere far away. My task is to draw my own small canvas on this added chart. Thanks for the great work on the graphics library.
I am trying to assimilate this huge and multifaceted GUI complex, for which the author is very grateful, but some questions arise.
Why call AddToElementsArray several times while creating one element? If, for example, a tab is part of a window, shouldn't the call m_tabs1.AddToElementsArray(0,m_date_scale) automatically call CWndContainer::AddToElementsArray from the parent (as far as I understand the terminology, parents are called main elements, and all elements should have them, and all of them should be inside CWndContainer, i.e. all connections for automatic call are there)?
In principle, having calls to two "counter" in meaning methods (child.MainPointer(parent) and AddToElementsArray(child)) when creating elements looks suboptimal. Why don't you turn the parent-subordinate relationship in the opposite direction and combine it in one call a la parent.Add(child), which will internally make AddToElementsArray and child.MainPointer(parent) if necessary?
Why should we do AddToElementsArray for tabs before object creation, but for CWndContainer after?
Why not make it possible to set all options before creating an element? Now it turns out that properties are artificially divided into 2 parts: those that need to be set before calling Create, and those that need to be called later. And what prevents the flag and text state from being set in the same group of operators where size, options, etc. are specified?
Why CWndContainer::AddToElementsArray with the first parameter 0, if in the vast majority of cases one window is used and the index can be made as the second optional parameter.
Wasn't there an idea to unify the creation of different types of elements with a single virtual Create method? Now each type of element has its own CreateBlaBlaBlaBla function - why is that?
Why in the helper methods (such as CreateComboBoxTF, etc.) only the position of the element is set via parameters, and its size is specified inside? Taking into account alignment, size and position should change "synchronously", in one place of the programme, i.e. if coordinates are considered worthy of passing from outside as parameters, then the size should be there too.
In the article https://www.mql5.com/en/articles/3366 there was an example of an Expert Advisor with all the controls, but it is incompatible with the latest version. Is there an updated example?
in vs code, win 10 64bit, trying to compile the panel, i get 'deprecated' warnings, and 1 error:
Compiling........: TradePanel.mq5 C:\Users\x\AppData\Roaming\MetaQuotes\Terminal\xxx\MQL5\Include\EasyAndFastGUI\Element.mqh(379,24) : warning 91: deprecated behavior, hidden method calling will be disabled in a future MQL compiler version C:\Users\x\AppData\Roaming\MetaQuotes\Terminal\xxx\MQL5\Include\EasyAndFastGUI\Controls\Scrolls.mqh(625,15) : warning 91: deprecated behavior, hidden method calling will be disabled in a future MQL compiler version C:\Users\x\AppData\Roaming\MetaQuotes\Terminal\xxx\MQL5\Include\EasyAndFastGUI\Controls\Scrolls.mqh(927,15) : warning 91: deprecated behavior, hidden method calling will be disabled in a future MQL compiler version C:\Users\x\AppData\Roaming\MetaQuotes\Terminal\xxx\MQL5\Include\EasyAndFastGUI\Controls\TextBox.mqh(1844,14) : warning 91: deprecated behavior, hidden method calling will be disabled in a future MQL compiler version C:\Users\x\AppData\Roaming\MetaQuotes\Terminal\xxx\MQL5\Include\EasyAndFastGUI\Controls\ListView.mqh(704,45) : warning 91: deprecated behavior, hidden method calling will be disabled in a future MQL compiler version C:\Users\x\AppData\Roaming\MetaQuotes\Terminal\xxx\MQL5\Include\EasyAndFastGUI\Controls\ListView.mqh(1468,71) : warning 91: deprecated behavior, hidden method calling will be disabled in a future MQL compiler version C:\Users\x\AppData\Roaming\MetaQuotes\Terminal\xxx\MQL5\Include\EasyAndFastGUI\Controls\TreeItem.mqh(85,15) : warning 91: deprecated behavior, hidden method calling will be disabled in a future MQL compiler version C:\Users\x\AppData\Roaming\MetaQuotes\Terminal\xxx\MQL5\Include\EasyAndFastGUI\Controls\ProgressBar.mqh(156,4) : warning 91: deprecated behavior, hidden method calling will be disabled in a future MQL compiler version C:\Users\x\AppData\Roaming\MetaQuotes\Terminal\xxx\MQL5\Include\EasyAndFastGUI\Controls\ProgressBar.mqh(260,4) : warning 91: deprecated behavior, hidden method calling will be disabled in a future MQL compiler version C:\Users\x\AppData\Roaming\MetaQuotes\Terminal\xxx\MQL5\Include\EasyAndFastGUI\Controls\Table.mqh(3416,109) : warning 91: deprecated behavior, hidden method calling will be disabled in a future MQL compiler version C:\Users\x\AppData\Roaming\MetaQuotes\Terminal\xxx\MQL5\Include\EasyAndFastGUI\Controls\Tabs.mqh(588,47) : warning 91: deprecated behavior, hidden method calling will be disabled in a future MQL compiler version C:\Users\x\AppData\Roaming\MetaQuotes\Terminal\xxx\MQL5\Include\EasyAndFastGUI\Controls\Tooltip.mqh(82,17) : warning 91: deprecated behavior, hidden method calling will be disabled in a future MQL compiler version C:\Users\x\AppData\Roaming\MetaQuotes\Terminal\xxx\MQL5\Include\EasyAndFastGUI\Controls\Window.mqh(1289,8) : warning 91: deprecated behavior, hidden method calling will be disabled in a future MQL compiler version C:\Users\x\AppData\Roaming\MetaQuotes\Terminal\xxx\MQL5\Include\EasyAndFastGUI\WndEvents.mqh(302,36) : warning 91: deprecated behavior, hidden method calling will be disabled in a future MQL compiler version C:\Users\x\AppData\Roaming\MetaQuotes\Terminal\xxx\MQL5\Include\EasyAndFastGUI\WndEvents.mqh(302,56) : warning 91: deprecated behavior, hidden method calling will be disabled in a future MQL compiler version C:\Users\x\AppData\Roaming\MetaQuotes\Terminal\xxx\MQL5\Include\EasyAndFastGUI\WndEvents.mqh(1426,20) : warning 91: deprecated behavior, hidden method calling will be disabled in a future MQL compiler version C:\Users\x\AppData\Roaming\MetaQuotes\Terminal\xxx\MQL5\Include\EasyAndFastGUI\WndEvents.mqh(1761,33) : warning 91: deprecated behavior, hidden method calling will be disabled in a future MQL compiler version C:\Users\x\AppData\Roaming\MetaQuotes\Terminal\xxx\MQL5\Include\EasyAndFastGUI\WndEvents.mqh(1761,53) : warning 91: deprecated behavior, hidden method calling will be disabled in a future MQL compiler version C:\Users\x\AppData\Roaming\MetaQuotes\Terminal\xxx\MQL5\Experts\TradePanel\CreateGUI.mqh(111,20) : error 199: 'AddItem' - wrong parameters count C:\Users\x\AppData\Roaming\MetaQuotes\Terminal\xxx\MQL5\Experts\TradePanel\CreateGUI.mqh(111,28) : warning 181: implicit conversion from 'number' to 'string' Result: 1 errors, 19 warnings
thx for sharing,
s love nia
TradePanel.mq5 file is not compiled!

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
New article Expert Advisor featuring GUI: Creating the panel (part I) has been published:
Despite the fact that many traders still prefer manual trading, it is hardly possible to completely avoid the automation of routine operations. The article shows an example of developing a multi-symbol signal Expert Advisor for manual trading.
The element of CStandardChart type is meant to visualize data by symbols. EURUSD D1 is displayed by default. It features the following properties.
If necessary, it is possible to create an array of charts aligned in a horizontal row. To do this, use the CStandardChart::AddSubChart() method by passing a symbol and chart timeframe as arguments. However, in this case, we need a single chart, while symbols and timeframes are switched using other controls.
Author: Anatoli Kazharski