
CHAPTER 4: User-Interface Tools Window object 120
findElement()
windowOrContainerObj.findElement (name)
name
The name of the element, as specified in the name creation property.
Searches for the named element among the children of this window or container, and returns the
object if found.
Returns the
control object or null.
hide()
windowObj.hide()
Hides this window. When a window is hidden, its children are also hidden, but when it is shown
again, the children retain their own visibility states.
For a modal dialog, closes the dialog and sets its result to 0.
Returns
undefined.
notify()
windowObj.notify([event])
event
Optional. The name of the window event handler to call. One of:
onClose onResize
onMove onResizing
onMoving onShow
Sends a notification message, simulating the specified user interaction event. For example, to
simulate a dialog being moved by a user:
myDlg.notify("onMove")
Returns undefined.
remove()
windowOrContainerObj.remove(index)
windowOrContainerObj.remove(text)
windowOrContainerObj.remove(child)
index
text
child
The child control to remove, specified by 0-based index, the contained text
value, or as a
control object.
Removes the specified child control from this window’s or container’s
children array. No error
results if the child does not exist.
Returns
undefined.
Comentarios a estos manuales