I've got a fun problem here... I've got a window with a listbox in it and some code in the window's KeyDown event, which returns True. I initially set the focus to the listbox. Later I hide the listbox (visible=false). When the listbox is hidden, the window no longer fires the KeyDown event. It just beeps. If I make a new project without the listbox - only a window and the KeyDown event, the KeyDown event fires every time like it should. In this case, the window's focus is Nil. If I go back to my original program and say "Self.setfocus" after I hide the listbox, the KeyDown event still refuses to fire. How can I make my program with the listbox respond to keypresses when the listbox is hidden? This only happens in Windows builds, by the way.
More info to add... if I minimize the window and then restore it back, the KeyDown event then fires. Weird...
Ron Benditt Alien Apparatus Company, Inc. http://www.alienapparatus.com _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
