Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2014-03

Suggestion on DBGrid

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

FreeMan

Hello,
In lazarus/lcl/dbgrids.pas, TDBGridOption set add item "dgNextRowonEnter" and "dgNextRowonEnterOnLastColumn" TCustomDBGrid.KeyDown(...
line: 2172
if (dgNextRowonEnter in Options)then begin
GetDeltaMoveNext(ssShift in Shift, DeltaCol, DeltaRow, AutoAdvance);

               MoveSel(True);
             end;

when RowSelected, enter is always moveto nextrow.
"dgNextRowonEnterOnLastColumn" some times usefull, dataset's autoedit, but I don't want to new row.
I wrote here, what you are thing about this? if its usefull I wanna add to bugtracker for suggestion. or team add quickly :) Thank you

Reply by email

Jesus Reyes
to FreeMan
Show quoted text 18 lines
El S?bado, 8 de marzo, 2014 6:02:01, FreeMan escribi?: > Hello, In lazarus/lcl/dbgrids.pas,? TDBGridOption set? add item "dgNextRowonEnter" and "dgNextRowonEnterOnLastColumn" TCustomDBGrid.KeyDown(... line: 2172 ? ? ? ? ? ? if (dgNextRowonEnter in Options)then begin ? ? ? ? ? ? ? GetDeltaMoveNext(ssShift in Shift, DeltaCol, DeltaRow, AutoAdvance); ? ? ? ? ? ? ? MoveSel(True); ? ? ? ? ? ? end; when RowSelected, enter is always moveto nextrow. "dgNextRowonEnterOnLastColumn" some times usefull, dataset's autoedit, but I don't want to new row. I wrote here, what you are thing about this? if its usefull I wanna add to bugtracker for suggestion. or team add quickly :) Thank you
AutoAdvance works on pressing ENTER (or TAB), in a DbGrid with AutoAdvance:=aaDown and while editing you press the ENTER key, the next row will be selected, that seems to be what your dbNextRowOnEnter will do. About dNextRowOnEnterOnLastColumn, it seems to be the same as AutoAdvance:=aaRightDown.

I don't think adding duplicate of existing functionality would be a good idea.

Jesus Reyes A.

Reply by email

FreeMan
to Jesus Reyes

Thank you Jesus,
you right, Sorry for my pure english.

08-03-2014 20:35 tarihinde, Jesus Reyes yazd?:

Show quoted text 8 lines
AutoAdvance works on pressing ENTER (or TAB), in a DbGrid with AutoAdvance:=aaDown and while editing you press the ENTER key, the next row will be selected, that seems to be what your dbNextRowOnEnter will do. About dNextRowOnEnterOnLastColumn, it seems to be the same as AutoAdvance:=aaRightDown. I don't think adding duplicate of existing functionality would be a good idea. Jesus Reyes A.

Reply by email