Subject Re: [IBO] F2 to Edit
Author Andreas Pohl
Hallo Andreas Pohl,

> just fighting with this I could prevent this behavior by commenting out
> this 2 lines of code in IB_Grid.pas:
>
> // if AlwaysShowEditor and HasFocus then
> // ShowEditor;
>
> Now typing with ib_datasource.AutoEdit:=true will replace content with
> keyboard character (even with ib_grid.AlwaysShowEditor:=False). F2 is
> working as before.

sorry, that's not all. 2 more changes needed. I had to comment out all
calls to BoundsChanged, too:

in procedure TIB_CustomGrid.SysUpdateEditor:

(InPlaceEditor as TIB_GridInplaceEdit).Color := AColor;
// Pohl 05.10.2006
// (InPlaceEditor as TIB_GridInplaceEdit).BoundsChanged;

in function PositionControl:

tmpIntf.SetFocus;
// Have to FORCE a BoundsChanged calculation due to some
// weird processing with WM_CTL* messages.
// (even though, more often than not, no change has occurred)
// Pohl 05.10.2006
// tmpIntf.BoundsChanged;

No it's possible to modify TIB_Grid.InplaceEditor without flickering.

http://tinyurl.com/jd8k3

--
Andreas