Chapter 6. The WindowObject Class

Table of Contents
assocWindow
handle
title
title=
wclass
id
coordinates
state
getStyle
restore
hide
minimize
maximize
resize
enable
disable
moveTo
toForeground
focusNextItem
focusPreviousItem
focusItem
findChild
childAtPosition
next
previous
first
last
owner
firstChild
enumerateChildren
sendMessage
sendCommand
sendMenuCommand
sendMouseClick
sendSyscommand
pushButton
sendKey
sendChar
sendKeyDown
sendKeyUp
sendText
menu
systemMenu
isMenu
processMenuCommand

The WindowObject class provides methods to query, manipulate, and interact with a particular window or one of its child windows.

Access to the WindowObject class requires that the following directive appear in the Rexx program.

::requires 'winSystm.cls'

Note. Prior to the release of ooRexx 4.0.0, the WindowsObject class was implemented using the original external function API. That API required that the external functions be registered with the interpreter. For the most part this was done transparently to the Rexx programmer. However, with the WindowsObject class there was one scenario where the registration was not done and prior documentation provided a work around.

Starting with ooRexx 4.0.0, that work around is not needed. There no longer is any need for the programmer to register external functions at all. Requiring winSystm.cls is all that is needed from ooRexx 4.0.0 and on. Disregard the previous documentation concerning external functions.

Methods the WindowObject Class Defines

assocWindow

>>-assocWindow--(--handle--)-----------------------------------><

Assigns a new window handle to the WindowObject instance.