Retrieving the first window in a program (sys.FirstWindow)

sys.FirstWindow,,p

First window in a program

Version >= 5.8.9

A pointer to the first window in a program. Since Sculptor’s pre-defined windows are created before windows defined in the program, the first window is always one of these pre-defined windows. The programmer should not rely on it being any particular window.

The value of sys.FirstWindow can be assigned to another pointer field, as in the example below.


EXAMPLE

!temp pwindow,,p

     pwindow = &sys.FirstWindow

RELATED TOPICS

Pre-defined windows

first_child()

first_control()

first_menu()

next_object()