1. DefPushButton in Win32Lib
In the latest version of Win32Lib (well, the Bleeding Edge), when I push
Enter on the keyboard after typing something in an EditText box, after the
onClick is processed, I hear the notification beep played. Is this
intentional? It's pretty cool to notify when processing is done 10 seconds
later, but when changing the data directory and hitting Enter and getting
the beep it's irritating... Any way to stop it?
2. Re: DefPushButton in Win32Lib
Robert Pilkington wrote:
> In the latest version of Win32Lib (well, the
> Bleeding Edge), when I push Enter on the keyboard
> after typing something in an EditText box, after the
> onClick is processed, I hear the notification beep
> played. Is this intentional?
Could you send me an example? The intent of the code was that the
Enter/Return key would not get processed; I'm not sure what's actually
happening in your example.
Thanks!
-- David Cuny
3. Re: DefPushButton in Win32Lib
------=_NextPart_000_001D_01BF56B9.32F02280
charset="iso-8859-1"
Hi David, I tried sending this to the e-mail in your header, but didn't get
a reply (guess it's the same problem others have when trying to e-mail you
directly), so I'm trying the Listserver.
> > In the latest version of Win32Lib (well, the
> > Bleeding Edge), when I push Enter on the keyboard
> > after typing something in an EditText box, after the
> > onClick is processed, I hear the notification beep
> > played. Is this intentional?
>
> Could you send me an example? The intent of the code was that the
> Enter/Return key would not get processed; I'm not sure what's actually
> happening in your example.
Here's the main code that shows what's happening. Although some of the
tricks I did are cool in the full code, most of the functionality has been
taken out
to conserve space. If anyone wants to see the whole thing, I can send it.
(It
parses a bunch of stats files for the online sessions someone has played in
Descent 3, and lets you know your total kills, deaths, and who you've played
against, etc. If you don't have Descent 3, I can send some sample stats
files
as well.)
Basically, here's the problem: When an EditText box has focus, and I hit
Enter, then the onClick event for the default pushbutton is trapped, and
processing would be done. (ie for View, the stats files are loaded.) When
it's finished, I hear a beep. If a different control has focus (scrollbar,
pushbutton, checkbox, listbox, etc), then there is no beep. (So the EditText
control must be receiving the Enter, since it beeps when you hit enter on
it.)
Is there an easy way to stop the beeping? Specifically, for the settings
window. The user can type the directory and hit enter, without getting a
beep after the window disappears.
For the Aliases window, it'd be nice if hitting Enter on each EditText
box would trigger an onClick for the corisponding "Add" button.
One more thing: This would've been a whole lot easier to program if the
Header control (yay, I just learned what it is called) was supported in
Win32Lib.. I had to pretty much emulate it in this program. (Otherwise the
kills/deaths in the players encountered list wouldn't line up. I just used
LText boxes and changed the data in them according to where the scrollbar
is.)
------=_NextPart_000_001D_01BF56B9.32F02280
name="SetWin.ew"
Content-Transfer-Encoding: quoted-printable