MouseWheel Bug in CRDBGrid
Posted: Sun 29 Oct 2006 10:02
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.
Best regards,
Ajasja Ljubetič
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;Ajasja Ljubetič