New topic in General: Window doesn't see keydown event
timjw - Sat Mar 29, 2008 4:41 pm <http://forums.realsoftware.com/viewtopic.php?t=20010> Hi, I've got a window with no obvious "input" controls on it. There are some canvases, statictexts, a couple of buttons, and a couple of container controls (both of which are comprised of canvases and statictexts). I have a keydown event handler on this window, but it doesn't actually fire. My first assumption was that there was some kind of control capturing the key... but I ended up deleting every single control except a single statictext, and every piece of code except the keydown handler, without any change. So at this point I have a keydown handler with just this code: statictext1.text = key and still nothing happens. So, any ideas what could cause this? Other windows in the same project see and handle keydown events fine, so it's not an application wide problem. I wondered if I'd set some odd property on the window, but I can't see anything (it's a normal document window). Corrupted project, maybe? I hope not, it's got a lot of work in it and I really don't want to recreate this window from scratch. Cheers, Tim. -- Over 900 classes with 18000 functions in one REALbasic plug-in. The Monkeybread Software Realbasic Plugin v8.1. <http://www.monkeybreadsoftware.de/realbasic/plugins.shtml> [email protected]
