Search the web
Sign In
New User? Sign Up
EhLib
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Ehlib Need a little improve   Message List  
Reply | Forward Message #529 of 917 |
1¡¢why TMemTableEh can not support MouseWheelUp and DoMouseWheelDown?

in the unit DBGridEh,
function TCustomDBGridEh.DoMouseWheelDown(Shift: TShiftState;
MousePos: TPoint): Boolean;
begin
if ViewScroll and FDatalink.Active then //why is ViewScroll ?
begin
Result := False;
if Assigned(OnMouseWheelDown) then
OnMouseWheelDown(Self, Shift, MousePos, Result);
if not Result then
begin
if ssShift in Shift then
if ssCtrl in Shift
then FDatalink.DataSet.MoveBy(VisibleRowCount)
else FDatalink.DataSet.Next
else if ssCtrl in Shift then
begin
if (RowCount - TopRow - VisibleRowCount < VisibleRowCount)
then
FIntMemTable.FetchRecords(VisibleRowCount - (RowCount -
TopRow - VisibleRowCount));
SafeMoveTop(TopRow + VisibleRowCount);
end else
SafeMoveTop(TopRow + 1);
Result := True;
end;
end else
begin
if FDatalink.Active then FDatalink.DataSet.MoveBy(1
{Mouse.WheelScrollLines});
Result := True;
end;
end;

2¡¢the property "lookupdisplayfields" of the TDBColumnEh,Such as
property lookupdisplayfields is "ID;Caption;Code;",can you Add a
property which it show lookupdisplayfields by second text "caption",
such like TDBLookupCombobox'property ListFieldIndex.

3¡¢TDBGridEh can not support lookupGrid by different filter
Mode




Tue Mar 27, 2007 7:21 am

chinacodegear
Offline Offline
Send Email Send Email

Forward
Message #529 of 917 |
Expand Messages Author Sort by Date

1¡¢why TMemTableEh can not support MouseWheelUp and DoMouseWheelDown? in the unit DBGridEh, function TCustomDBGridEh.DoMouseWheelDown(Shift: TShiftState; ...
chinacodegear
Offline Send Email
Mar 27, 2007
7:21 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help