User Tools

Site Tools


additem_program_the_windowmanager_object_.htm
Navigation:  ABC Library Reference > WindowManager > WindowManager Methods >====== AddItem (program the WindowManager object) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page
AddItem ( | class | )
WindowComponent
control, response

blk2blue.jpg

AddItem Adds specific functionality to the WindowManager.
class The label of one of the following objects: BrowseClass, ToolbarClass, ToolbarUpdateClass, TranslatorClass, or WindowResizeClass
WindowComponen The label of a WindowComponent interface.
control An integer constant, variable, EQUATE, or expression containing the control number of the control whose acceptance invokes the response' typically OK and Cancel buttons.
response An integer constant, variable, EQUATE, or expression indicating the action to register when the control is accepted.

The AddItem method registers another ABC Library object with the WindowManager object to add the object's specific functionality to the WindowManager. The AddItem method also registers an interface with the Window Manager's Component List.

Implementation:

The TakeAccepted method assigns the response value to the Response property when the control is accepted. EQUATEs for the response parameter are declared in \LIBSRC\TPLEQU.CLW as follows:

RequestCompleted EQUATE (1) !Update Completed

RequestCancelled EQUATE (2) !Update Aborted

See Also:     Response, WindowManager.TakeAccepted

additem_program_the_windowmanager_object_.htm.txt · Last modified: 2021/04/15 15:56 by 127.0.0.1