Results 1 to 2 of 2

Thread: input focus

  1. #1

    Thread Starter
    Hyperactive Member noble's Avatar
    Join Date
    Nov 2000
    Location
    Philly
    Posts
    471

    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

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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
  •  



Click Here to Expand Forum to Full Width