Subject Re: [IBO] TIB_Grid InPlaceEditor Logic
Author Geoff Worboys
> Removing the change I made and replacing UpdateContents with your
> replacement procedure allows both Date editors to appear. Then
> inserting MyField=EDIT in edit links causes my OnEditButton event
> handler to be called when the edit button is clicked in that field.
> And it does not appear for another date field. So, with your change
> there is control per field whereas with my change there is not.

I think the change is worth it. That way you can still define code to
OnEditButton but not be forced to handle date columns unless you want
to.


> However with your change the OnEditButton handler is called over and
> over again, requiring a forced exit. I looked through the change you
> made but do not see the problem. The looping logic must be partly
> outside UpdateContents?

I dont see this effect. I had a show message attached to my
OnEditButton event and it was only being called once per actual click
(regardless of whether I had DATEFIELD=EDIT in the EditLinks or not).

Are you able to reproduce the problem in a demo and send it to me.
Since I now have the same change to IB_Grid as you do I should be able
to see the same effect.


--
Geoff Worboys
Telesis Computing