embed_server
Entity: predicate
Warning: This predicate is not available in the Light edition.

Usage:
embed_server(Handle, Parent, EventsClass, Title, X, Y, Width, Height, Server, ConnectionPoint)

Creates an embed ActiveX control.
 
Handle handle. Use _ if you don't need it. 
Parent handle of the parent window. Use _ for default.
EventsClass The name of the class which will proceed the events from the server. Use _ or the function server if you do not want to listen for events.  
Title not used
X,Y coordinates of upper left corner
Width, Height  size of the embedded control
Server  Server Object or Server Name or Server Class ID
ConnectionPoint  The name of the connection point which events you want to receive. Use _ if you want to receive the events from all connection points.

This predicate is similar to the predicate button but it embeds ActiveX object instead of a button.

If you have OLE server (ActiveX object) which is created by the function server you can use the predicate embed_server in order to embed this OLE server in a window. In this case, the Server has to be a server object. If you use arguments EventsClass and ConnectionPoint you will change the values which were set at the time of creation by server2 function. If you don't want to change these values use _ for these two arguments.

This use of the predicate embed_server is shown in the sample Media Player.spj.

If you have not created OLE server yet you can create it and embed it in a window by the predicate embed_server. In this case the arguments Server, EventsClass and ConnectionPoint are similar to the arguments of server2 function.

This use of the predicate embed_server is shown in the sample IE.spj.

See also:
OLE and ActiveX
server, close
. (point)
raise_event
window

Examples:
 Media Player.spj
 IE.spj
 OLE