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. 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 ? 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. 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; Link to comment Share on other sites More sharing options...
jahlxx Posted November 6, 2017 Author Share Posted November 6, 2017 excatly that. thanks. 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? 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. Link to comment Share on other sites More sharing options...
Sherzod Posted November 6, 2017 Share Posted November 6, 2017 Ok Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now