Next_Focus - cUIObject

Returns the object that is positioned in the focus tree as the next object at the same level as this object

Type: Property

Access: Read-Only

Data Type: Handle

Parameters: None

Syntax
 Property Handle Next_Focus

Read Access: Get Next_Focus to HandleVariable


Description

The Next_Focus function returns the object that is positioned in the focus tree as the next object at the same level as this object. If the object is not a ring and there is not a next level, then the function will return zero. If the object is not active it will also return zero. The next object may not be focusable, and the user should check the focus_mode of the returned object to ensure that it is acceptable.

if (Focus_Mode(Next_Focus(Focus(Desktop))) = Focusable) ;
    send Switch

Valid options are Focusable, NonFocusable and No_Activate.