Libraries: EasyAndFastGUI library for creating graphical interfaces - page 31

 

hi, I need help please
I have 2 open windows
The window1 has a button (clicking changes the window2 coordinates)

With the following code, window 2 is not drawn correctly
what am I doing wrong?
Could you put an example please
void CApp::CreateGUI(void)
{
   //--- Window 1 (main)
   CCoreCreate::CreateWindow(m_window1, "WINDOW 1", 1, 1, 200, 200, true, true, true, true);
   
   //--- Button
   CCoreCreate::CreateButton(m_button, m_window1, 0, "MOVE WINDOW 2...", 7, 25, 120);
  
   
   //--- Window 2 (second)
   m_window2.WindowType(W_SECOND);
   CCoreCreate::CreateWindow(m_window2, "WINDOW 2", 50, 50, 200, 200, true, true, true, false);
}


//Even Click Button in Window1 ( does not draw the window correctly)
void CApp::ClickButtonMove()
{
   m_window2.UpdateWindowXY(100,100);
   m_window2.Update(true);
}


 
Arturo Hugo Ninamango #:
hi, I need help please
I have 2 open windows
The window1 has a button (clicking changes the window2 coordinates)

With the following code, window 2 is not drawn correctly
what am I doing wrong?
Could you put an example please

На текущий момент вы можете попробовать воспользоваться методом Moving():

  window.Moving(x, y);
  CCoreEvents::Moving();

This may be changed in future updates to make it more convenient to use.

 
hi
when working with tables with images in cells
when wanting to apply the method my_table.DeleteAllRows()
the first row does not delete the images.

In the Table.mqh file I made this small modification to solve it , but I am not sure if it is the most convenient

If there is another way to solve this I would like to know.
//+------------------------------------------------------------------+
//| Deletes all rows                                                 |
//+------------------------------------------------------------------+
void CTable::DeleteAllRows(const bool redraw = false) {
//--- Set dimension
  TableSize(m_columns_total, 1, false);
//--- Clear cells
  for(uint i = 0; i < m_columns_total; i++) {
    m_columns[i].m_data_type = TYPE_STRING;
    SetValue(i, 0, "");
    m_columns[i].m_rows[0].m_back_color        = m_back_color;
    m_columns[i].m_rows[0].m_custom_back_color = false;
    m_columns[i].m_rows[0].m_text_color        = m_label_color;
    m_columns[i].m_rows[0].m_custom_text_color = false;
    
    //-- Is the following line convenient????
    ArrayFree(m_columns[i].m_rows[0].m_images);
    

  }
//--- Set default values
  m_selected_item_text     = "";
  m_selected_item          = WRONG_VALUE;
  m_last_sort_direction    = SORT_ASCEND;
  m_is_sorted_column_index = WRONG_VALUE;
//--- Calculate and set new table sizes
  RecalculateAndResizeTable(redraw);
}

 
Hi, I'm interested in purchasing 'EasyAndFastGUI' for MT4, how should I proceed?
Thank you
 
barcla #:
Hi, I'm interested in purchasing 'EasyAndFastGUI' for MT4, how should I proceed?
Thank you

I replied in a private message.

 
Arturo Hugo Ninamango #:
hi
when working with tables with images in cells
when wanting to apply the method my_table.DeleteAllRows()
the first row does not delete the images.

In the Table.mqh file I made this small modification to solve it , but I am not sure if it is the most convenient

If there is another way to solve this I would like to know.

I will take a closer look at this issue and release an update.

 
writes 'SORT_MODE_ASCENDING' - undeclared identifier

 
BillionerClub #:
writes 'SORT_MODE_ASCENDING' - undeclared identifier

And in which file is this found?

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

 

Defines.mqh conflict with Algolib ap.mqh

Has anyone else noticed the following? If I compile EAF-001 freestanding everything is AOK.

I use Algolib and including App.mph gives me the following compilation errors:

line 1359: %terminal%\MQL5\Include\Math\Alglib\ap.mqh
       enum SMODE { DEFAULT,ALLOC,TO_STRING,FROM_STRING };
',' - argument expected for the function-like macro     ap.mqh  1359    40
';' - argument expected for the function-like macro     ap.mqh  1465    20
')' - argument expected for the function-like macro     ap.mqh  1502    24
')' - argument expected for the function-like macro     ap.mqh  1530    24
')' - argument expected for the function-like macro     ap.mqh  1558    24

This is because TO_STRING is a macro definition as follows:

line 49: %terminal%\MQL5\Files\tol64\2.22\MT5\Include\EasyAndFastGUI\Constant\Defines.mqh
#define TO_STRING(A) #A

I seem to have a couple of unpalatable options, both of which might get broken by future updates; i.e.,  like changing TO_STRING to TO__STRING in ap.mqh. I'd like to avoid this.


Any ideas,  Anatoli?

 
Earthy Stag beetle #:

Defines.mqh conflict with Algolib ap.mqh

Has anyone else noticed the following? If I compile EAF-001 freestanding everything is AOK.

I use Algolib and including App.mph gives me the following compilation errors:

This is because TO_STRING is a macro definition as follows:

I seem toi have a couple of unpalatable options, both of which might get broken by future updates.

Any ideas,  Anatoli?

This is a conflict of names:

//---

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