How to get handle of line object drawn on the horizontal canvas band

 

I drew a long transparent horizontal band with canvas from the left to the right end of chart. 

Then I created a horizontal line object. 

When the line is outside the canvas band, I can get line handle with either CHRARTEVENT_OBJECT_CLICK or CHARTEVENT_CLICK and move around by mouse.

However, once the line goes into the canvas band, I can no longer get the handle with the same chart event.

I want to know why this happens and any workaround to fix this issue.

 
Try playing with OBJPROP_ZORDER. I've never used it, but I suspect it might help.
Object Properties - Objects Constants - Constants, Enumerations and Structures - MQL4 Reference
Object Properties - Objects Constants - Constants, Enumerations and Structures - MQL4 Reference
  • docs.mql4.com
Object Properties - Objects Constants - Constants, Enumerations and Structures - MQL4 Reference
 
Vladislav Boyko #:
Try playing with OBJPROP_ZORDER. I've never used it, but I suspect it might help.
I set OBJPROP_ZORDER = 10(default = 0) for HLINE object, but won't work, still cannot get line handle.
 

Probably I have to add  to my original inquiry as below to get help.

Indicator A:  I drew a long transparent horizontal band with canvas from the left to the right end of chart. 

Indicator B: Then I created a horizontal line object. 

When the line is outside the canvas band, I can get line handle with either CHRARTEVENT_OBJECT_CLICK or CHARTEVENT_CLICK and move around by mouse from Indicator B.

However, once the line goes into the canvas band, I can no longer get the handle with the same chart event.

I want to know why this happens and any workaround to fix this issue.

 
provide sample.code to reproduce the condition.
 

I found inappropriate statements in my code and once it is fixed, I can get line handle with no issue.

Vladislav Boyko, thank you for your time to review my inquiry.

I am closing this........