Libraries: EasyAndFastGUI library for creating graphical interfaces - page 32

 
Anatoli Kazharski #:

This is a conflict of names:

//---

You can replace in Define.mqh and in other library files TO_STRING with TO_STR.

Thanks Anatoli,

I had understood the problem and had fixed it temporarily by changing the enum member name in ap.mqh.

I will revert ap.mqh to TO_STRING and change your #define as you suggested to TO_STR; I was concerned that this change might be overwritten with future release of your library. Are you also going to make the change in your source from TO_STRING to TO_STR?

 
Earthy Stag beetle #:

...

Are you also going to make the change in your source from TO_STRING to TO_STR?

Yes, of course.

 
Anatoli Kazharski #:

And in which file is this found?

The first version of the library has not been updated for a long time.

Everywhere ENUM_SORT_MODE from mt5 and custom ENUM_SORT_MODE are used. But I have fixed at myself can not say now where

 
Anatoli Kazharski #:

Yes, of course.

Thanks Anatoli,

I am a happy bunny.

 

New chart objects are being drawn over my window.easyGUI like below - how do I 'BringToFront' my EA Window?


Best of all would be to set it to always be the front.

 
Earthy Stag beetle #:

New chart objects are being drawn over my window.easyGUI like below - how do I 'BringToFront' my EA Window?

Best of all would be to set it to always be the front.

Try this method:

  CCoreEvents::ResetWindow();
  m_chart.Redraw();
 
Anatoli Kazharski #:

Try this method:

Yes, this code does bring the EA window in front of the artefacts. I have a 1 second timer running and I have put the code in the timer handler.

In this situation, it does cause the window to noticeably flash - once per second.

Does this need to be done once at start up or repeatedly?

To be honest, I'd rather put up with the artefacts rather than flashing.

With my best regards, ESB.
 
Earthy Stag beetle #:

Yes, this code does bring the EA window in front of the artefacts. I have a 1 second timer running and I have put the code in the timer handler.

In this situation, it does cause the window to noticeably flash - once per second.

Does this need to be done once at start up or repeatedly?

To be honest, I'd rather put up with the artefacts rather than flashing.

With my best regards, ESB.

This should be done only once, when a trading event occurs (opening or closing a position).

 

Dear Anatoli Kazharski Thank you for your efforts

Please help me to fix the following lines error in Element.mqh file.

m_id = m_wnd.LastId()+1;
m_chart_id = m_wnd.ChartId();
m_subwin = m_wnd.SubwindowNumber();
m_corner = (ENUM_BASE_CORNER)m_wnd.Corner();
m_anchor = (ENUM_ANCHOR_POINT)m_wnd.Anchor(); 

Many thanks

 
siavash shabgahi #:

Dear Anatoli Kazharski Thank you for your efforts

Please help me to fix the following lines error in Element.mqh file.

Many thanks

@siavash shabgahi

In the second version, this issue is completely solved.