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
childAtPosition
coordinates
disable
enable
enumerateChildren
findChild
first
firstChild
focusItem
focusNextItem
focusPreviousItem
getStyle
handle
hide
id
isMenu
last
maximize
menu
minimize
moveTo
next
owner
previous
processMenuCommand
pushButton
resize
restore
sendChar
sendCommand
sendKey
sendKeyDown
sendKeyUp
sendMenuCommand
sendMessage
sendMouseClick
sendSyscommand
sendText
state
systemMenu
title
title=
toForeground
wclass
>>-assocWindow--(--handle--)-----------------------------------><
Assigns a new window handle to the WindowObject instance.