Mossy Posted August 23, 2023 Share Posted August 23, 2023 Hi Using UnidbGrid how is possible to chieve similar behaviour as TUniEdit property of "CheckChangeDelay". I am doing some processing on keypress and when users scrolling fast there is a large delay. Or is it possible to have on "keyup" event, so the processing start only when the no more key is pressed. Thank you. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 23, 2023 Share Posted August 23, 2023 Hi @Mossy This post may help you: Quote Link to comment Share on other sites More sharing options...
Mossy Posted August 23, 2023 Author Share Posted August 23, 2023 Hi Sherzod I have tried that but before but there is no delay introduced. Can I send on keyup event? so we can detect when the key is released regards Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 23, 2023 Share Posted August 23, 2023 2 hours ago, Mossy said: I am doing some processing on keypress and when users scrolling fast there is a large delay. Or is it possible to have on "keyup" event, so the processing start only when the no more key is pressed. Can you please explain in more detail? Or make a simple testcase to check. Quote Link to comment Share on other sites More sharing options...
Mossy Posted August 24, 2023 Author Share Posted August 24, 2023 Hi Sherzod The difficulty is one needs many records and processing to see it happen. The problem is they try to look for a record fast and they press for example arrow down and let go after scrolling through many records. The issue is the event keydown is fired many times and for each record the application is doing the processing which after a while it looks as it stuck and it takes few seconds for the application to catch up. As far as I can see if we can have the keyup event, then only we will have one event at the end. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 24, 2023 Share Posted August 24, 2023 Hello, What events are you handling? Quote Link to comment Share on other sites More sharing options...
Mossy Posted August 25, 2023 Author Share Posted August 25, 2023 I use keypress and keydown. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 25, 2023 Share Posted August 25, 2023 22 minutes ago, Mossy said: I use keypress and keydown. And what is the approximate logic inside these events? Quote Link to comment Share on other sites More sharing options...
Mossy Posted August 25, 2023 Author Share Posted August 25, 2023 We display some information and also we have to process some information from different tables and offer suggestions. This works well in Delphi app that we have. But we are trying to move to Unigui. We use keyup in Delphi. 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.