jahlxx Posted November 6, 2017 Share Posted November 6, 2017 Hi. Is possible to associate a shortcut to a trigger of a unicombobox or unidblookcomboblx? Thanks. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 6, 2017 Share Posted November 6, 2017 Hi, Please explain, what do you want ? Quote Link to comment Share on other sites More sharing options...
jahlxx Posted November 6, 2017 Author Share Posted November 6, 2017 Ok. I have a unidblookcombobox, with 2 triggers. The 2nd. trigger is x-form-search-trigger, and when click the glass, I execute a loking form. I want to do the same by pressing a key. I mean, associate a keypress to the trigger. Thanks. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 6, 2017 Share Posted November 6, 2017 Maybe something like this ?!: procedure TMainForm.UniComboBox1KeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); begin if Key = VK_F3 then UniComboBox1.OnTriggerEvent(UniComboBox1, 1); end; Quote Link to comment Share on other sites More sharing options...
jahlxx Posted November 6, 2017 Author Share Posted November 6, 2017 excatly that. thanks. Quote Link to comment Share on other sites More sharing options...
jahlxx Posted November 6, 2017 Author Share Posted November 6, 2017 Ooops. This break the normal behaviour. What to do when key is <> VK_F3? Quote Link to comment Share on other sites More sharing options...
jahlxx Posted November 6, 2017 Author Share Posted November 6, 2017 Ok. Solved with onkeypress instead of onkeydown. Thanks. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 6, 2017 Share Posted November 6, 2017 Ok 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.