-
May 9th, 2017, 11:09 AM
#1
Auto-complete selection
Hi, ALL,
Is there a way to know when the auto-complete combo box selection occurs? Either by mouse click or "Enter" press.
It doesn't look like it is from looking here. But maybe there is some hidden way?
Thank you.
-
May 15th, 2017, 03:59 AM
#2
Re: Auto-complete selection
Sorry, it is not clear what exactly you need to know/detect...
Victor Nijegorodov
-
May 15th, 2017, 09:30 AM
#3
Re: Auto-complete selection
Hi, Victor,
Originally Posted by VictorN
Sorry, it is not clear what exactly you need to know/detect...
Create a text control with the auto-completion.
Start typing - autocompletion window pops-up.
Hit enter on one of the choices.
At this point is there any messages sent to notify me that the text is changed?
I.e., can I detect that the auto-completion selection was made and the text is changed?
Thank you.
-
May 15th, 2017, 09:50 AM
#4
Re: Auto-complete selection
One of the possible ways would be: subclass this "popup autocompletion window" and handle the "selection changed" (in case it is a listbox) or some similar notification for other window type.
Victor Nijegorodov
-
May 15th, 2017, 10:58 AM
#5
Re: Auto-complete selection
Hi,
Originally Posted by VictorN
One of the possible ways would be: subclass this "popup autocompletion window" and handle the "selection changed" (in case it is a listbox) or some similar notification for other window type.
Yes, I feared that there is no Windows way to handle this situation.
Thank you.
-
May 15th, 2017, 11:10 AM
#6
Re: Auto-complete selection
Originally Posted by OneEyeMan
Hi,
Yes, I feared that there is no Windows way to handle this situation.
Thank you.
So where this "popup autocompletion window" comefrom and how?
What type of a "text control with the auto-completion" do you use?
Victor Nijegorodov
-
May 15th, 2017, 11:18 AM
#7
Re: Auto-complete selection
Hi,
Originally Posted by VictorN
So where this "popup autocompletion window" comefrom and how?
This is the link.
Originally Posted by VictorN
What type of a "text control with the auto-completion" do you use?
Just a regular text edit control from the standard windows classes described here.
-
May 15th, 2017, 11:31 AM
#8
Re: Auto-complete selection
Victor Nijegorodov
-
May 16th, 2017, 10:10 AM
#9
Re: Auto-complete selection
OneEyeMan, have you checked the Windows SDK for a sample?
-
May 18th, 2017, 01:18 AM
#10
Re: Auto-complete selection
-
May 22nd, 2017, 02:17 AM
#11
Re: Auto-complete selection
If you run the example from above, you will see CBN_SELENDOK notification code:
https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx
"Sent when the user selects a list item, or selects an item and then closes the list."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|