Page 1 of 1

MouseWheel Bug in CRDBGrid

Posted: Sun 29 Oct 2006 10:02
by ajasja
Hello!

I hope this is the right forum for this post.

Reproduce:
Well, anyway, when using TCRDBGrid if you click on the grid and use the Mouse Wheel to move to the search/filter bar, then if you try to move away (with the mouse wheel), the focus stays on the search bar.

Solution:
Add a message handler for the WMMouseWheel to the TCRGridTitleEdit.

Code: Select all

TCRGridTitleEdit = class(TCustomStaticText)
...
Protected
    Procedure WMMouseWheel(var Message : TWMMouseWheel); Message WM_MOUSEWHEEL;
...
end;

procedure TCRGridTitleEdit.WMMouseWheel(var Message: TWMMouseWheel);
begin
  if Message.WheelDelta>0 then
    GotoUpperCell
  else
    GotoLowerCell;
end;
Best regards,
Ajasja Ljubetič

Posted: Tue 31 Oct 2006 10:16
by Antaeus
Thank you for information. We have reproduced this problem and fixed it. This fix will be included in the next MyDAC build.