Kbase P17797: INPUT CLEAR Statement on the Windows GUI platform.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  1/30/2003 |
|
Status: Unverified
GOAL:
Is there another way to INPUT CLEAR on the Windows GUI platform?
GOAL:
Does Progress 4GL have a statement that runs on GUI and functions in the same way as the INPUT CLEAR statement, which only works on character platforms?
FACT(s) (Environment):
Windows
FACT(s) (Environment):
Progress 7.3E
FACT(s) (Environment):
Progress 8.x
FACT(s) (Environment):
Progress 9.x
FIX:
No, Progress 4GL does not have an alternative for the INPUT CLEAR statement on GUI. The code Progress used to execute to implement the INPUT CLEAR command on Windows is as follows:
FlushKeypress()
{
MSG msg;
while (PeekMessage(&msg, NULL, WM_KEYFIRST, WM_KEYLAST, PM_REMOVE));
}
The above code simply removes all pending keyboard messages from the Windows event queue. A DLL that contains this code could be created and called from the 4GL in order to accomplish the functionality that the INPUT CLEAR statement used to have on Windows. However, there is still the risk of encountering the bug which caused Progress to disable INPUT CLEAR on GUI.