Discussion of article "Graphical Interfaces I: Preparation of the Library Structure (Chapter 1)" - page 5

 
Maksxs:

Greetings Anatoli Kazharski. In your Element.mqh file in the ChangeObjectColor function the m_chart_id object is used. But I understand that the connection is lost in the Objects.mqh file. I get the error "m_chart_id - undeclared identifier" when compiling. I have not found anything about this (m_chart_id) in the article. Thank you in advance for the answer.


P.S. I am just learning OOP. I understand it by your examples. Thank you for your work.

Strange. I just downloaded"EasyAndFastGUI_MQL5.zip" and compiled the [data folder]\MQL5{Experts}Article01.zip file.

  • file [data folder]\MQL5\Experts\Article01\TestLibrary.mq5 - no errors
  • file [data folder]\MQL5\Include\EasyAndFastGUI\Controls\Element.mqh - no errors
 

Of all programming languages, mql4 and to a greater extent mql5 are the worst I have seen. The teaching skills of the creators of articles and tutorials are abysmal. You spend hours reading and understanding what has been provided and when you download the attachment of the interface, it does not correspond to the images shown (that with a lot of luck, because in graphical interfaces III articles 01 and 02 does not work abasolutamente nothing: I pass metaquotes and metatrader. I give up. instead of clarifying things, what you do is to complicate them and spoil what you have already achieved by programming our scripts and EA. As teachers you are null.

 

Hi. I have an error with: 'm_chart_id' - undeclared identifier Element.mqh 178 53  (x3) 

color current_color=(color)::ObjectGetInteger(m_chart_id,name,property);

ObjectSetInteger(m_chart_id, name, property, new_color);

ObjectSetInteger(m_chart_id, name, property, new_color);

Can you tell me how to solve it? Thank you