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

To add comments, please log in or register
Zbigniew Sobczyk
206
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?

nicholi shen
2258
nicholi shen  
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

Zbigniew Sobczyk
206
Zbigniew Sobczyk  
nicholi shen:

Set OBJPROP_SELECTABLE to true and OBJPROP_HIDDEN to false

Thanks, that's what it was about!

:)

To add comments, please log in or register