Subject | Re: [IBO] Pasting problem into masked field in IBO3 grid |
---|---|
Author | Geoff Worboys |
Post date | 2001-08-06T14:39:36Z |
> IBO 3.6A, BCB 4OK, I can reproduce it here - it is also a problem on IBO4.
>
> when I tab out (without posting) the old value reappears,
> when I edit the field (i.e. press backspace) then the new
> value remains table is normal, the field is in the middle
Jason,
I've managed to track it this far: When a paste is done there is no
call to the SetEditText - as there would be during normal keyboard
input. Looks like the inplace editor needs a wmpaste message handler
to do something (cut seems OK asis). Its either that or we need to
intercept the UpdateData calls to check if the inplace editor has been
modified BEFORE updating the column reference. That is...
In Grid.MoveCol you have
DataLink.UpdateData;
<...>
HideEditor;
HideEditor will result in a call to SetEditText, but by then it is too
late, the column reference already thinks it is updated.
Not sure if I might be missing a more obvious fix, any thoughts?
Geoff Worboys
Telesis Computing