Mirko Posted March 10, 2022 Share Posted March 10, 2022 Hi there, I'd like to achieve to following and haven't got it to work so far: I have a TUniForm containing editable controls (e.g. TUniEdit) and would like to catch all OnKeyDown events on the form via KeyPreview = true. The Edits shall remain editable in the normal manner, but Browser events shall be prevented (e.g. CTRL+S (Save dialog), ALT+D, F5, F12 etc.). It is important to catch the OnKeyDown event of the form as I have to process the input (could contain control signs transmitted by a barcode scanner). So far I managed to prevent the browser events (by ways of MonitoredKeys or ClientEvents or Script) but doing this will either lead to the edits not showing the input (MonitoredKeys.KeyEnableAll = true) or the OnKeyDown event of the form not firing anymore (when using ClientEvents or Script). Is there any chance to achieve this? Thanks a lot for your help! Best regards Quote Link to comment Share on other sites More sharing options...
Mirko Posted March 11, 2022 Author Share Posted March 11, 2022 Hi again, is there any chance to catch the UniFormKeyPress event (as I need Key as Char) while at the same time prevent browser events (e.g. CTRL+S (Save dialog), ALT+D, F5, F12 etc.)? Your help would be greatly appreciated! Thanks in advance. Regards Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 11, 2022 Share Posted March 11, 2022 Hello, Which edition and build of UniGUI are you using? Quote Link to comment Share on other sites More sharing options...
Mirko Posted March 11, 2022 Author Share Posted March 11, 2022 Hi, Professional Edition v1.90.0.1545 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 11, 2022 Share Posted March 11, 2022 40 minutes ago, Mirko said: Professional Edition v1.90.0.1545 Please adjust your forum email address: See the related demos. But be aware that not all browser hotkeys can be captured. Quote Link to comment Share on other sites More sharing options...
Mirko Posted March 11, 2022 Author Share Posted March 11, 2022 57 minutes ago, Sherzod said: Please adjust your forum email address: I' d really like to do that but I cannot login there... is it the same pwd as here? Quote Link to comment Share on other sites More sharing options...
Mirko Posted March 11, 2022 Author Share Posted March 11, 2022 Ok, I adjusted it... but how does that help? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 11, 2022 Share Posted March 11, 2022 2 minutes ago, Mirko said: Ok, I adjusted it... but how does that help? http://forums.unigui.com/index.php?/topic/6291-new-users-please-adjust-your-forum-email-address/&do=findComment&comment=32086 Quote Link to comment Share on other sites More sharing options...
Mirko Posted March 11, 2022 Author Share Posted March 11, 2022 11 minutes ago, Sherzod said: http://forums.unigui.com/index.php?/topic/6291-new-users-please-adjust-your-forum-email-address/&do=findComment&comment=32086 I've been on that page before... adjusted the forum address... but still I can't see any attachments(?) Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 11, 2022 Administrators Share Posted March 11, 2022 18 minutes ago, Mirko said: I've been on that page before... adjusted the forum address... but still I can't see any attachments(?) Can you please log out and login again? Quote Link to comment Share on other sites More sharing options...
snow Posted March 11, 2022 Share Posted March 11, 2022 The posts above are from me (using a new/second account created with another eMail address (which I probably shouldn't have done)). I've now logged on and off using both accounts but still can't see any attachments anywhere. Can't you just send them to me (using either of the two email addresses)? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 11, 2022 Administrators Share Posted March 11, 2022 Can you see below attachment to this post? EmTec_ZOC_Assert.zip Quote Link to comment Share on other sites More sharing options...
snow Posted March 11, 2022 Share Posted March 11, 2022 Yepp Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 11, 2022 Administrators Share Posted March 11, 2022 Good! So you should be able to see and download all attachments. 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.