. .

st4u

ST 4U 233: Startup Options for VisualWorks

May 16, 2012 10:25:22.175

Today's Smalltalk 4 You looks at some of the startup options for VisualWorks (most of which also apply to ObjectStudio now). 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:

startup

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:

Technorati Tags: , ,

Enclosures:
[st4u233-iPhone.m4v ( Size: 2833175 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 232: StartupLoader in Pharo

May 14, 2012 11:03:59.847

Today's Smalltalk 4 You looks at the StartupLoader in Pharo - this is all based on this post from Mariano Martinez Peck. 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:

Startup

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:

Technorati Tags: , ,

Enclosures:
[st4u232-iPhone.m4v ( Size: 3484126 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 231: Code Completion in VA 8.5.1

May 11, 2012 9:13:01.185

Today's Smalltalk 4 You looks at the upgrades to code completion in VA Smalltalk 8.5.1. 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:

Code Completion.

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 go back to code completion in VA Smalltalk - there have been a lot of improvements in the 8.5.1 release. When the video from STIC 2012 is released (check the conference pages regularly), you should definitely watch it. In the meantime, let's open up a workspace and have a look. Notice that we've defined our variables as temps; the code completion support relies on having a valid compilation environment. If you don't have that, you won't see suggestions:

Code Completion

One of the niftier new things is camel case support. Try typing in RWS - you should see suggestions immediately, although you can always hit ctrl-space to get them:

camel case

The new support is smart enough to split on the case changes, and match RWS to ReadWriteStream. What's really nice is that it also works for keyword messages, splitting both on case and colons. Try creating an OrderedCollection and then entering aai:

camel case

Notice that it matched for messages in the collection hierarchy - the support takes note of the compilation environment, and uses it to give you better answers.

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:
[st4u231-iPhone.m4v ( Size: 2885523 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 230: Using OCX Controls in WindowBuilder

May 9, 2012 8:05:40.384

Today's Smalltalk 4 You looks at utilizing OCX controls in WindowBuilder Pro (VA Smalltalk) - we've already looked at using them via the Composition Editor. 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:

OCX in WB Pro.

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 WindowBuilder Pro to embed an OCX control into a VA Smalltalk window. Obviously, this support is limited to Windows. To get started, select the OLE controls in the palette, and then select the control:

OCX Control

Double click on the widget to bring up properties; it might take a moment, depending on what you have installed. In clientName, select the control you want to use - the list will vary based on what you have installed on your windows machine. Here, we've selected the Windows Media Player:

windows media

To see it work, put in an url for playable media (Video or audio):

properties

Unlike the composition editor, the embedded player starts operating on what you entered immediately. You can also test it:

playing

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:
[st4u230-iPhone.m4v ( Size: 3580767 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 229: Message Construction

May 7, 2012 8:06:05.019

Today's Smalltalk 4 You looks at ad hoc message construction in Smalltalk. It's a powerful technique, but one that should be used sparingly. 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:

Message Construction

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:

Technorati Tags: , ,

Enclosures:
[st4u229-iPhone.m4v ( Size: 3796941 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 228: Using OCX Controls in VA Smalltalk

May 4, 2012 10:52:20.699

Today's Smalltalk 4 You looks at changing the font used across the tools 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:

OCX.

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 embed an OCX control into a VA Smalltalk window. Obviously, this support is limited to Windows. To get started, select the OLE folder in the composition editor, and then use the middle control:

OCX Control

Double click on the part you just selected to set properties. In clientName, select the control you want to use - the list will vary based on what you have installed on your windows machine. Here, we've selected the Windows Media Player:

windows media

Next, close the properties tool and reopen it. The player will render in the canvas, and its specific properties will become available:

properties

You can specify various control properties; here, we'll set the URL, so that the player opens on some media. In this case, we'll use a podcast mp3 file. Using the test functionality, you can see it work:

playing

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:
[st4u228-iPhone.m4v ( Size: 4003050 )]

posted by James Robertson

 Share Tweet This

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

st4u

ST 4U 226: Message Not Understood

April 30, 2012 9:49:46.989

Today's Smalltalk 4 You looks at handling the MessageNotUnderstood exception - by implementing #doesNotUnderstand:. It's a dangerous thing to do, but can sometimes be useful. Today we use a trivial example to demonstrate. 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:

MNU

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:

Technorati Tags: , ,

Enclosures:
[st4u226-iPhone.m4v ( Size: 4025760 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 225: Embedding a Windows Application in VA Smalltalk

April 27, 2012 10:55:18.709

Today's Smalltalk 4 You looks at embedding a standard windows app (WordPad in this case) into a VA Smalltalk window. 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:

OLE.

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 VA OLE support to embed a Windows application into a VA Smalltalk window. We'll use a standard editor - WordPad. To get started, open the VA Organizer, create a new application and part, and add in an OLE client control (To see those steps, refer to this tutorial.

OLE Client

Double click on the client part, scroll down to "clientName", and select one of the available options from the drop down. THe list will vary based on what you have installed on your system; we'll pick WordPad, which should always be available:

client

Next, we'll change decorationPolicy and focusDecorationPolicy to XmNONE - this will remove any application borders, embedding the tool completely into our window:

display

Finally, go to File>>Test, and see the embedding in action:

OLE Editor

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:
[st4u225-iPhone.m4v ( Size: 3437587 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 224: Getting Started With OLE Controls in VA Smalltalk

April 25, 2012 10:37:11.856

Today's Smalltalk 4 You starts looking at OLE interfaces in VA Smalltalk, starting with something very simple - a graphics pane on a bitmap. 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:

OLE.

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 start looking at using OLE components in VA Smalltalk - starting off with the simplest example possible: using the graphics control to display a bitmap graphic. First, load the OLE support (VA OLE support) from the features tool:

Features

Next, open up the VA Organizer and create a new application and (visual) part:

New Part

That will take you to the composition editor. On the lower left side of the tools section, you should see a new "OLE" category. Select that, and then pick the first (OLE Client) control from the list:

OLE Parts

Right click on the part, and go to settings. Towards the bottom, you should see "sourcePath". We are going to hit the chooser, and select the BMP file to drop in here.

OLE Client

It should render immediately:

OLE Graphic

Finally, go to the File menu and select "Test". You should see your graphic in a new window:

OLE Graphic

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:
[st4u224-iPhone.m4v ( Size: 4244122 )]

posted by James Robertson

 Share Tweet This

Previous Next (554 total)