I have a ToolButton with a handler:
Dim tlbMyPolyline as This
tlbMyPolyline = MICtrlCollAddStrStrInt(groupControlColl, "tlbMyPolyline", "Draw new segment", ControlType_ToolButton)
...
'Handler
Call SetRbnToolBtnCtrlCallingHandler(tlbMyPolyline, "MyPolyline")
'****************************
Here MyPolyline is a subroutine. It contains, particularly, an instruction
Run Menu Command M_TOOLS_POLYLINE
This allows to draw a polyline and then the sub processes the result.
The button and handler work fine at first time. But if to try to draw a new line without to click the button once more the handler does not work. I have to note that the same code
works in MapInfo 15 without additional clicks. Could the problem be solved?
Thank you.