|
-
Feb 27th, 2002, 09:41 PM
#1
Thread Starter
Hyperactive Member
input focus
I have a listbox that is invisible at design time. It is enabled
during runtime when certain things happen. It pops up
over an edit control and the user can tab to it to pick data from it
The problem:
I SetFocus() and BringWindowToTop() for the ListBox but it can't
receive any keydown or mouse down messages from me.
As soon as i click on it, it loses focus and essentially is invisible
again. I tried to disable the edit control while the listbox is
visible but I don't want it to be gray while it's disabled.... it's not
the effect that I want.
Thanks in advance for any help.
Bababooey
Tatatoothy
Mamamonkey
-
Mar 1st, 2002, 04:55 PM
#2
set a member variable when the listbox should be displayed and check for notifications from the edit control that it gets the focus. If the member variable is set, set the focus to the listbox.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
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
|