. .


ST 4U 392: OLE Embedding in VA Smalltalk

May 24, 2013 12:07:41.489

Today's Smalltalk 4 You looks at OLE embedding in VA Smalltalk. If you have trouble viewing it here in the browser, you can also navigate directly to YouTube. To watch now, click on the image below:


If you have trouble viewing that directly, you can click here to download the video directly. If you need the video in a Windows Media format, then download that here.

You can also watch it on YouTube:

Today we'll take a look at OLE embedding with VA Smalltalk. As it happens, a programmatic (as opposed to parts constructions tools) example ships with the product. First, load the OLE Samples, and then execute the following code (you should browse the class OlexContainerExample as well):

OlexContainerExample new open

Now, go to the edit menu, and select "Insert Object...":

OLE Embed

You'll get a list of things you can embed. We've chosen WordPad here, as any installation of Windows should have access to that. You should see WordPad come up:

OLE Embed 2

Now, enter some text and close WordPad without saving - the text will appear in the VA container:

OLE Embed 3

Browse the class and take a look at how it's been set up - that should give you a starting point for doing this kind of thing in your own applications.

Need more help? There's a screencast for other topics like this which you may want to watch. Questions? Try the "Chat with James" Google gadget over in the sidebar.

Tags: , ,

[st4u392-iPhone.m4v ( Size: 2020085 )]

posted by James Robertson

 Share Tweet This