. .

st4u

ST 4U 227: Launching an External Application in VA Smalltalk

May 2, 2012 10:56:21.079

Today's Smalltalk 4 You looks at launching an external application (a browser in this example) from a VA Smalltalk application. We'll use the composition editor to build our example app. 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:

external app.

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 use the Composition editor to hook up a button in a VA Smalltalk application to an external application - in this case, a web browser that defaults to a specific page. To get started, select the external applications folder in the tool, and then use the external application icon. Drop an instance outside the bounds of the window, as we are going to connect a window component (button) to it:

External Application

Double click on the part you just selected to set properties. Use the "find" button to locate the application that will be launched. Note that you can specify a parameter string; here, we'll use an url:

properties

Here we have everything specified:

properties

Now, put a button on the canvas, and connect that to the "start program" aspect of the external application:

connect

If you set it all up correctly, you should see something like this when you use the test functionality and click the button:

test

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.

Technorati Tags: , ,

Enclosures:
[st4u227-iPhone.m4v ( Size: 2696200 )]

posted by James Robertson

 Share Tweet This