Subject | Re: [IBO] F2 to Edit |
---|---|
Author | Geoff Worboys |
Post date | 2006-10-05T22:40:52Z |
Andreas Pohl wrote:
The changes are interesting but particularly that last one looks
to have one of my comments above it. It is too long ago now
since I installed the interface for dropped controls, I cannot
remember all the various issues that occurred, but there were
LOTS of them. Unless a more recent release of Delphi has made
some of the boundschanged calls redundant I suspect the changes
you suggest are not safe for all cases.
--
Geoff Worboys
Telesis Computing
> Hallo Andreas Pohl,Hi Andreas and Andreas, :-)
>> just fighting with this I could prevent this behavior byWhat version of Delphi (and IBO) are you using?
>> 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.
The changes are interesting but particularly that last one looks
to have one of my comments above it. It is too long ago now
since I installed the interface for dropped controls, I cannot
remember all the various issues that occurred, but there were
LOTS of them. Unless a more recent release of Delphi has made
some of the boundschanged calls redundant I suspect the changes
you suggest are not safe for all cases.
--
Geoff Worboys
Telesis Computing