Is there an easy way to suppress the movement from the tab key when in edit mode like there is for the enter key?
I have tried using FormKeyDown logic but it seems to work only every other time the tab key is pressed.
Tab movement suppresion in edit mode
Re: Tab movement suppresion in edit mode
I have managed to disable the tab movement but have now noticed that use of the arrow keys does not generate any events. How can I track which cell of the grid the user has arrowed to?
Re: Tab movement suppresion in edit mode
Hello,
I've been able to fire an event when the TAB key is pressed while editing a cell. The problem is the IEditor control in TVCLTeeGrid is "private" and to use it we will have to move it to "protected":
I've been able to fire an event when the TAB key is pressed while editing a cell. The problem is the IEditor control in TVCLTeeGrid is "private" and to use it we will have to move it to "protected":
Code: Select all
procedure CMDialogKey(Var Msg: TWMKey); message CM_DIALOGKEY;
Code: Select all
type TVCLTeeGridAccess=class(TVCLTeeGrid);
procedure TFormGridDataset.CMDialogKey(Var Msg: TWMKEY);
begin
if (Msg.CharCode = VK_TAB) and (ActiveControl = TVCLTeeGridAccess(TeeGrid1.Grid).IEditor) then
ShowMessage('TAB key pressed');
inherited;
end;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |