Consultor Eletrônico



Kbase 15077: ANYWHERE Doesn't Work With VBX Controls
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/10/1998
ANYWHERE Doesn't Work With VBX Controls

The current architecture for VBX implementation has the VBX getting
the keystrokes FIRST and then sending events to Progress. This is the
opposite of how Progress works with its built-in controls.

This means that features like ANYWHERE don't directly work with VBX
controls. To get ANYWHERE to work the user must create an event
procedure for the KEYUP (or equivalent event) event for every VBX
control. In the event procedure the user should create a case
statement of the nKeyCode parameter. This variable holds the ASCII
value of the key that was entered. The following fragments show...

ON F4 ANYWHERE Message "anywhere" view-as alert-box.
... in the KEYUP event handler ...
case nKeyCode:
when 115 then APPLY "F4" TO SELF. /* 115 is ascii for F4 */ ...

Progress Software Technical Support Note # 15077