[fpc-pascal]Graph for Windows
Rich Pasco
pasco at acm.org
Wed May 29 16:52:28 CEST 2002
While we're on the subject...
Can I accept keyboard input while the graph window has the focus?
I ported (from Borland Pascal) a Graph application that displays a graph
and then accepts keyboard input via the CRT unit's functions Keypressed
and ReadKey, based on which it modifies the graph. When I compile and
run my app under Free Pascal for the Win32 target, the graph window
opens up, but the keyboard is ignored unless the user switches the focus
back to the console window from which the app was launched. This is
awkward because the user has to remember to do it, and then the console
window partially obscures the graph. I would prefer to read the
keyboard directly while the graph window has the focus, but how?
- Rich
More information about the fpc-pascal
mailing list