How to select the object created by the ObjectCreate() method

 

Hello

When I create an object using ObjectCreate() function, I can't select it on the chart with the mouse click. No objects also appear in the Object List on the chart. In the MQL4 EA, I created a graphical interface in which trend lines were used to set levels. I could drag them freely with the mouse. How can I do it in MQL5?

 
Zbigniew Sobczyk:

Hello

When I create an object using ObjectCreate() function, I can't select it on the chart with the mouse click. No objects also appear in the Object List on the chart. In the MQL4 EA, I created a graphical interface in which trend lines were used to set levels. I could drag them freely with the mouse. How can I do it in MQL5?

Set OBJPROP_SELECTABLE to true and OBJPROP_HIDDEN to false

 
nicholi shen:

Set OBJPROP_SELECTABLE to true and OBJPROP_HIDDEN to false

Thanks, that's what it was about!

:)