Activation Event

For BBj-specific information, see Activation Event - BBj.

Description

The user switched between either the applications or the windows within an application.

For application activation and deactivation, the context is irrelevant. For window activation and deactivation, examining the x field indicates if the window is minimized and indicates when a top level window is activated or deactivated.

Previously, when users switched between applications via keyboard entries such as the Alt+Tab combination, Visual PRO/5 did not always send a focus change event to the application's top level window because the change was passed to the frame window that manages the top level window.

Mandatory/Optional

Optional

Event Mask Bit

$40000000$

Event Template

context:u(2),code:c(1),id:u(2),flags:u(1),x:u(2),y:u(2)

Field

Description

context

Application activated/deactivated events = current context.

Window activated/deactivated events = window which was activated or deactivated.

code

A

id

0

flags

0 = Application deactivated

1 = Application activated

2 = Window deactivated

3 = Window activated by mouse click

4 = Window activated by other than mouse click

x

If flags are 2, 3, 4:

non-zero = window is minimized

zero = window is not minimized

y

0