Instruction Manual

OEM External Specification
OEM User’s Guide520330-001
A-61
OEM Callback API (Adapter to OEM)
Cascade
Use the Cascade method to allow the EM framework to cascade all client application
windows.
Parameters
Left (input)
is the left position of the area in which client windows are to be cascaded.
Top (input)
is the top position of the area in which client windows are to be cascaded.
Width (input)
is the width of the area in which client windows are to be cascaded.
Height (input)
is the height of the area in which client windows are to be cascaded.
Return Value
0 if the OEM Server has accepted and handled the message
Non-zero if the OEM Server cannot or will not process the message
Considerations
When this method is called, the OEM Server uses each client callback object’s Move,
Height, and Width methods to cascade client application windows.
The OEM Gateway returns 0 if it has accepted the command and non-zero if it has not.
If a non-zero value is returned, the adapter is not required to do anything. However, it
might choose to perform some sort of error processing if necessary.
Example
Dim RC As Integer
' OEMServerCallbackObject was passed in a Popup.Add or
Object.Add call
' Assume FrameworkWindow is defined elsewhere in the adapter
RC = OEMServerCallbackObject.Cascade(FrameworkWindow.Left,
FrameworkWindow.Top + FrameworkWindow.Height, 600, 600)
Function Cascade(Left As Single, Top As Single, Width As
Single, Height As Single) As Integer