| To: | REALbasic NUG <realbasic-nug at lists dot realsoftware dot com> |
|---|---|
| Subject: | Re: Editfield troubles (The plot thickens) |
| From: | Dave <mrtoast at gmail dot com> |
| Date: | Sun, 31 Oct 2004 13:14:45 -0700 |
| Delivered-to: | realbasic-nug at lists dot realsoftware dot com |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=YUDMtzZZO/Bw64q1vgThL5Iu3ElJYHxfx76L5aG5yW+JUIqFOFfpstmAKdfsZ+uzZPcPLEIra0P3vRILC4oQtjRv6cPgKVH0zqVAFl17jwjSnwfJN7hvAG0xkYKzUnCnibAf6ol4J+78r+h8pR68EroIzsePB0qzQ6LQahr9AYU= |
| References: | <20041030224003 dot 71B7C51D45B at lists dot realsoftware dot com> <E95F5DDD-2B1E-11D9-A6F5-000393921CD4 at xs4all dot nl> <772953130410311000792ceed4 at mail dot gmail dot com> |
Thanks to a suggestion from Mel Patrick (http://www.wabbitwanch.com/), I was able to fashion a work-around: - I created a window of type 0 and in the open event, set it some some crazy negative coords, so it was off screen. - Then I captured all the keydown events (under certain conditions) and relayed them directly to the KeyDown event of the searchfield (I subclassed the editfield and added a method from which I could call the KeyDown event from anywhere) - Everywhere I normally would say "searchfield.setfocus" I now say "wndCapturer.setfocus" This bypasses the mischeivous KeyDown events of global floaters, and works wonderfully. Thanks Mel! Dave -- "You take the blue pill. The dream ends, you wake up in bed and believe whatever you want to believe. You take the red pill. You stay in Wonderland and I show you how deep the rabbit-hole goes. You take the purple pill. The pain stops, you are relieved from heartburn, and the lining of your esophagus returns." There's no place like ~/ _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://www.realsoftware.com/listarchives/lists.html> |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Does someone know of a free IP -> location service?, Stefan Pantke |
|---|---|
| Next by Date: | Re: Does someone know of a free IP -> location service?, Christer Olsson |
| Previous by Thread: | Re: Editfield troubles (The plot thickens), Dave |
| Next by Thread: | O(N), impracticality, and obfuscated C, Theodore H.Smith |
| Indexes: | [Date] [Thread] [Top] [All Lists] |