• Join us

Object click priority always to rectangle label? - page 2

To add comments, please log in or register
Alain Verleyen
39096
Alain Verleyen  
Robert:
Still not solved and this same problem for OBJ_RECTANGLE
Still the same. But I don't see why it's a real problem, clicking on the background should lead to the same action as clicking on the label, so doesn't seem a big deal, call your processing code when a click occurs on the label on the rectangle.
Robert
113
Robert  
It's not reason for clicking only. It's global probal problem in managment of OBJPROP_ZORDER. Eg. some lines aren't under objetcs as we want, coz the depth of other object are in top (Example boards).
Marco vd Heijden
Moderator
12719
Marco vd Heijden  

Yes so you work around it there is no reason why you can not swap OBJ_RECTANGLE with OBJ_BUTTON and lay another OBJ_BUTTON on top of that.

The ZORDER issues with OBJ_RECTANGLE is known so you use OBJ_BUTTON either with text =" " blank or even with text so it serves the purpose of rectangle+layer combined.

And don't forget to call ChartRedaw();

Alain Verleyen
39096
Alain Verleyen  
Robert:
It's not reason for clicking only. It's global probal problem in managment of OBJPROP_ZORDER. Eg. some lines aren't under objetcs as we want, coz the depth of other object are in top (Example boards).
OBJPROP_ZORDER manages only the chart event priority, not how the objects are drawn.
12
To add comments, please log in or register