xInfo.setWindowOrder Method [AX 2012]

Sets the order in which windows should be displayed.

public void setWindowOrder(int window, [int afterWindow])

Run On

Called

Parameters

window
Type: int
The handle of the window to bring to the front.
afterWindow
Type: int
The handle to the window to place after the window specified by the window parameter; optional.

The following example sets focus on a window and brings it to the front.

void setFocus() 
{ 
    infolog.activateWindow(element.hWnd()); 
    infolog.setWindowOrder(element.hWnd()); 
}

Community Additions

ADD
Show: