RAD Studio (Common)
ContentsIndex
PreviousUpNext
Insert Object dialog box

Use the Insert Object dialog box at design time to insert an OLE object into an OleContainer component. The OleContainer component enables you to create applications that can share data with an OLE server application. After you insert an OLE server object in your application, you can double-click the OleContainer component to start the server application.  

Select whether or not you want to create a new file using the associated OLE server or use an existing file. If you use an existing file, it must be associated with an application that can act as an OLE server.

Choose Create New to specify that you want to launch a server application to create a new OLE object. After choosing Create New, the ObjectType list box is displayed.

Choose Create From File to specify that the OLE object has already been saved as a file. After choosing Create From File, the File, Browse and Link controls are displayed.

Select an application that you want to use as the OLE server. This list box displays all available applications that can be used as an OLE server. After you select an application, the product launches that application.

Enter the fully qualified path for the file you want to insert into your application. The file you choose must be associated with an application that can be used as an OLE server.

Note: This option is available only when you have selected the Create From File radio button.

Click Browse to display the Browse dialog box, where you can select a file to use as the OLE server.

Note: This option is available only when you have selected the Create From File radio button.

Check Link to link the object on the form to a file. When an object is linked, it is automatically updated whenever the source file is modified. When Link is unchecked, you are embedding the object, and changes made to the original are not reflected in your container.

Check to display the inserted object as an icon on the form. When this option is checked, the Change Icon button is displayed.

Click Change Icon to open the Change Icon dialog box, where you can specify an icon and label for the object you inserted onto the form.

Note: This option is available only when you have selected the Create From File radio button.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!