Libraries: EasyAndFastGUI library for creating graphical interfaces - page 5

 

Good afternoon.

How do I create column headers for table columns?

   m_table.HeadersColor(clrAzure);
   m_table.SetHeaderText(0,"Candle");
   m_table.SetHeaderText(1,"Value");
//--- Create a control
   if(!m_table.CreateTable(x_gap,y_gap))
     {
      Print(__FUNCTION__+": table was not created. Error=",GetLastError());
      return(false);
     }

There are no headings... Only rows by the number of rows specified during creation.

 
Juer:

Good afternoon.

How do I create column headers for a table?

There are no headings... Only rows by the number of rows specified during creation.

Perhaps you need to switch on the display of headers

m_table.ShowHeaders(true);
 
Nikita Avramenko:

You may need to enable the display of headings

Thank you

 

The created table covers the status bar at the bottom. When you resize the window, the status bar flickers there, but you can't see it that way.

Can you tell me where to dig?

 
Juer:

The created table covers the status bar at the bottom. When you resize the window, the status bar flickers there, but you can't see it that way.

Can you tell me where to dig?

This is when AutoYResizeMode(true). And how to make the table resize to the window size, but the status bar is visible?

 
Juer:

The created table covers the status bar at the bottom. When you resize the window, the status bar flickers there, but you can't see it that way.

Can you tell me where to dig?

Dig towards the vertical size of the created table. It is natural.

 
Artyom Trishkin:

Digging towards the vertical size of the created table. It's natural.

I don't set it at all. I just have it:

m_table.AutoYResizeMode(true);
 

What is the secret meaning of this code?

//--- Exit if only one line is left
   if(array_size<2)
      return;

Why can't the last line be deleted?

 
Juer:

I don't ask him at all. I just do:

Then dig towards the Y-coordinate of the status bar. That's natural, too

 

Periodically I encounter such hangs after all kinds of manipulations with the window. The panel does not react (or rather it reacts after a few seconds). I don't even know how to debug it, as I don't understand how to reproduce it yet. Where can something loop there?

Sometimes the bottom scroll disappears and then reappears....

Maybe it's something in the Expert Advisor itself. I'll have another look.