Luhan Posted January 23 Share Posted January 23 Hi there, I am using Delphi. As the title states, I want to move to the next cell below the one I am editing by just pressing enter. I have tried a few codes now but none works. Please any assistance would be gladly appreciated. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 23 Share Posted January 23 Hello, 10 minutes ago, Luhan said: I am using Delphi. What about the edition and version of uniGUI? Quote Link to comment Share on other sites More sharing options...
Luhan Posted January 23 Author Share Posted January 23 Delphi 10.2 and UniGUI 1.90.0 build 1566 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 23 Share Posted January 23 Thanks. 4 minutes ago, Luhan said: UniGUI 1.90.0 build 1566 I see that you are not using the trial version, please adjust your forum email address first: Quote Link to comment Share on other sites More sharing options...
Luhan Posted January 23 Author Share Posted January 23 Can you help me with my question stated earlier tho please? Quote Link to comment Share on other sites More sharing options...
luucm Posted January 26 Share Posted January 26 On 1/23/2024 at 5:36 PM, Luhan said: Can you help me with my question stated earlier tho please? I use 2 event 1. After Post DiChuyen ='OK'; 2. Keydown procedure TfrmPhieuNXK.Grid_ChiTietKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); begin if (DiChuyen ='OK') and (Key <> VK_UP) and (Key <> VK_DOWN) and (Key <> VK_LEFT) and (Key <> VK_RIGHT) then begin FDQueryDMNVL_d.Edit; // Kiểm tra trạng thái của Caps Lock if GetKeyState(VK_CAPITAL) <> 0 then begin // Chuyển đổi ký tự sang chữ thường nếu Caps Lock được kích hoạt GiaTriDauTien := Char(Key); end else begin GiaTriDauTien := LowerCase(Char(Key)); end; if ssShift in Shift then begin GiaTriDauTien := ''; end; // Hiển thị giá trị đã lưu FDQueryDMNVL_d.FieldByName(Grid_ChiTiet.Columns[Grid_ChiTiet.CurrCol].FieldName).AsString := GiaTriDauTien; DiChuyen := ''; end; end; Hope it can help you 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.