In both cases AdvStringGrid1AnchorClick is called, which is NOT correct in my eyes.
I would expect that in the first case AdvStringGrid1ControlClickand/or AdvStringGrid1ControlEditDone should be called. But unfortunately it isn’t.
What has to be done so that I can distinguish between the two cases and get the other events called?
Hint: Be careful. In this post I had to exchange the HTML specific Chars < and > by Unicode-Alternatives ˂ and ˃ because otherwise it would be displayed wrong here in the forum!
The responsible developer is currently out of office and will look into this asap. When you are posting code snippets, you can add them via the code tag:
When the control is not in an editable cell, these are considered static and not reacting as a control.
Enable editing (goEditing = true in grid.Options) or enable it for the cell that has HTML with controls that should be active with OnCanEditCell.
But I still have some issues with these controls…
When defining a text field (˂CONTROL TYPE="EDIT" WIDTH="120" VALUE="" ID="ED1" MAXLEN="20"˃) I can enter text and now it fires AdvStringGrid1ControlEditDone. But after this event it deletes the text out of the input field.
Same happens to a checkbox. It will never be checked (but the event fires correct now).