MetaTrader 4 Build 529 beta released with new compiler - page 160

 
When I change the property OBJPROP_HIDDEN, the object is not hidden in the list of objects... if I pass true or false to this property, no change is visible... the object is always visible in the list of objects.
I observe this with the object
OBJ_RECTANGLE_LABEL... I haven't checked how this property works with other objects... the situation is probably the same there...

Please take a look...
 
BorisMQL4:
When I change the property OBJPROP_HIDDEN, the object is not hidden in the list of objects... if I pass true or false to this property, no change is visible... the object is always visible in the list of objects.
I observe this with the object
OBJ_RECTANGLE_LABEL... I haven't checked how this property works with other objects... the situation is probably the same there...

Please take a look...
Sure, we will. A bit later.
 
#include <Controls/Panel.mqh>
#include <Controls/Button.mqh>
#include <Controls/WndContainer.mqh>

CWndContainer cc;
CPanel cp;
CButton cb;
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int OnInit()
  {
//--- indicator buffers mapping
   cc.Move(100,100);
   cc.Size(100,100);

   cp.Create(0,"cp",0,0,0,0,0);
   cp.BorderType(BORDER_FLAT);
   cp.ColorBackground(clrOrange);
   cp.ColorBorder(clrWhite);
   cp.Alignment(WND_ALIGN_CLIENT,0,0,0,0);
   cp.Align(cc.Rect()); // align to container
   cc.Add(cp);

   cb.Create(0,"cb",0,0,0,0,0);
   cb.ColorBackground(clrGreen);
   cb.ColorBorder(clrCyan);
   cb.Alignment(WND_ALIGN_CLIENT,0,0,0,0);
   cb.Align(cp.Rect()); // align to panel
   cc.Add(cb);
//---
   return(INIT_SUCCEEDED);
  }

^^ this code produces this (magnified):



Somehow this doesn't look quite right...

build 574

 
maximillion:

^^ this code produces this (magnified):



Somehow this doesn't look quite right...

build 574


How about this?
cp.Add(cb);
 
tara:
How about this?

afaict all four borders should be aligned instead of just one (container's just a placeholder).
 
The old EAs write after initialization that they initialized successfully:
2014.01.13 00:01:29     Expert GBPUSD,M1: initialized

Or that they are nailed because they are overdue (I don't remember verbatim).

The new ones don't say anything about a successful initialisation. Is that the intention?

________________

*New ones - written by the new rules and compiled in testing builds.

 
maximillion:

afaict all four borders should be aligned instead of just one (container's just a placeholder).
#include <Controls/Panel.mqh>
#include <Controls/Button.mqh>
#include <Controls/WndContainer.mqh>

CWndContainer cc;
CPanel cp;
CButton cb;
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int OnInit()
  {
//--- indicator buffers mapping
   cc.Move(100,100);
   cc.Size(100,100);

   cp.Create(0,"cp",0,0,0,0,0);
   cp.BorderType(BORDER_FLAT);
   cp.ColorBackground(clrOrange);
   cp.ColorBorder(clrWhite);
   cp.Alignment(WND_ALIGN_CLIENT,0,0,0,0);
   cp.Align(cc.Rect()); // align to container
   cc.Add(cp);

   cb.Create(0,"cb",0,0,0,0,0);
   cb.ColorBackground(clrGreen);
   cb.ColorBorder(clrCyan);
   cb.Alignment(WND_ALIGN_CLIENT,0,0,0,0);
   cb.Align(cp.Rect()); // align to panel
   cp.Add(cb);          // Instead off: cc.Add(cb);
//---
   return(INIT_SUCCEEDED);
  }
 
In testing and optimising, if you use a form with substitute variable names with comments
input ENUM_TIMEFRAMES TF=PERIOD_D1; //Таймфрейм поиска уровней
without source code, it is only possible to match the data in the reports to the corresponding input parameters by feel.
 

Dear beta testers. Let's continue in the most recent branch for beta testing, so as not to have multiple testing questions in different branches.
Here:

https://www.mql5.com/ru/forum/148850/page5

Dear beta testers. Let us not to produce test questions for various branches, will continue in the latest branch for beta testing.
Here:

https://www.mql5.com/ru/forum/148850/page5

 

I have only found a mention of the Simple Panel in this thread

Can you tell me where to read the description?

Reason: