🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms
Article #13441

Re: using windows serial I/O

#13441
From: Bill Turner
Date: Wed, 11 Jan 1989 18:52
21 lines
1417 bytes
>  Also on a different subject, is it possible to enter text into Edit type 
>  window not from a keyboard, i.e.  receive a character from the serial port
>  and enter it into the window of the Edit class, and is it possible, 
>  with the Edit type window, to track keyboard characters, so that they can
>  be filtered out before going to the Edit class window.

I can't answer your first question on using ReadComm, but I can help on the
edit field questions.

First, you can send text to the Edit field by using SendMesssage(WM_CHAR).
Nice how that works (and surprising, too, knowing some of what Microsoft
has done...).

You can subclass the edit field to filter input messages -- basically, you
substitute your own window proc that handles some messages and passes the
rest to the regular edit field processing.  I have a sample program that
does this (creating a numeric-only edit field); e-mail me for a copy, or if
there is demand I can post it.

--Bill Turner (bturner@hp-pcd)
HP Corvallis Workstation Operation
Technical Details
Message-ID: <106580015@hpcvlx.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!pasteur!ucbvax!hplabs!hp-pcd!hpcvlx!bturner
References: <27443@ucbvax.BERKELEY.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!pasteur!ucbvax!hplabs!hp-pcd!hpcvlx!bturner
From: bturner@hpcvlx.HP.COM (Bill Turner)
Newsgroups: comp.windows.ms
Subject: Re: using windows serial I/O
Message-ID: <106580015@hpcvlx.HP.COM>
Date: 11 Jan 89 18:52:50 GMT
References: <27443@ucbvax.BERKELEY.EDU>
Organization: Hewlett-Packard Co., Corvallis, OR, USA
Lines: 21