Subject RE: [ibo] (4.7.16) Strange drag behavior in IB_Grids
Author Jason Wharton
Peter,

> We have recently updated the IB Objects to 4.7.16 and get a Problem
> with dragging in IB_Grids: Just clicking on a Field in the Grid,
> releasing the Button and then moving the mouse produces a Dragging.
> This happens not always, but pretty often. It seems to be a time
> issue, because when i build a testproject with just one grid, on
> query and one datasource, that is no problem.
> We call BeginDragging in the MouseDown Routine, like this.
>
> procedure TFormVorgang.Grid_PositionMouseDown(Sender: TObject; Button:
> TMouseButton; Shift: TShiftState; X, Y: Integer);
> var GridCoord: TGridCoord;
> begin
> case Button of
> mbLeft: begin
> GridCoord := Grid_Position.MouseCoord(X, Y);
> if GridCoord.Y >= Grid_Position.FixedRows then
> Grid_Position.BeginDrag(False, -1);
> end;
> end;
> end;
>
>
> This behavior happens just after we updated the IB Objects. With IBO
> 4.5 this bug did not occur.
>
> Perhaps someone can confirm this Problem, and/or give me a hint what
> has been changed and how we have to ajust our code so that this works
> again.

I wish I knew off the top of my head but there's been a large amount of
changes since 4.5. Perhaps what we should do is give you a couple of the
releases in-between to test with and to try and identify exactly what has
changed. Are you open to progressively installing the chain of IBO releases
until the first time it appears broken and then we can look at what has
changed between the two nearest versions and try and pinpoint where things
got changed.

Jason