Determining If Browse Window Activated/DeactivatedLast reviewed: April 29, 1996Article ID: Q104593 |
The information in this article applies to:
SUMMARYThe DEACTIVATE and ACTIVATE clauses of the READ command are not executed for a window that does not contain a GET object. Therefore, these clauses will not be executed when a Browse window is activated or deactivated.
MORE INFORMATIONIt is possible to determine if a Browse window has been activated or deactivated. The ACTIVATE and DEACTIVATE clauses are executed only when a window, with GET objects and in the active READ command, is activated or deactivated. To test for the activation of a Browse window, you could place code with the READ window to test for the WONTOP() function. If the WONTOP() function is used with the Browse window, code associated with activating the Browse window could be executed. For example:
DEFINE WINDOW test1 FROM 1,17 TO 25,79 DEFINE WINDOW test2 FROM 1,1 to 15,79 USE customer BROWSE WINDOW test2 NOWAIT SAVE ACTIVATE WINDOW test1 @ 1,1 GET x DEFAULT ' ' READ CYCLE ACTIVATE myproc() DEACTIVATE myproc() FUNCTION myproc IF WONTOP()='CUSTOMER' WAIT WINDOW 'Browse window is activated!!' NOWAIT ELSE WAIT WINDOW 'Browse window is not activated!!' NOWAIT ENDIF RETURN .f. |
Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |