
First of all you need to go to the Squeakland site and download your copy of the Squeak plugin.
When you install it ( very easy!) you will see at your desktop the Squeak icon to run the program: Squeak.exe.
Clicking it you will see that you will have a window at your desktop having 2 tabs ("Navigator" and "Supplies"). We call it: the "Squeak desktop".
Drag up "Supplies" and you will see many "objects". Drag and drop a "Text" to the "Squeak desktop" and you will have the string: abc. You can close "Supplies".
If you have a mouse with 3 buttons (or 2 buttons and a wheel) put the pointer over the Text ("abc") and click with the button of the middle. If you don't have 3 buttons and are using Windows: Alt + leftclick.
You will see, around the Text many little buttons (the name of this group of buttons is "halo"). Click in the blue button and you will have a new pallete having many lines. Clicking in any place of the Squeak desktop the "halo" disapear.
Look to the next figure. Click in the arrow and drag the line of the figure to the Squeak desktop and will appear a new box where we will write our first program!
Click in the square (3th from left) and a window will open having the basic program who puts "abc" in the Text. "self" means: "me", this Text... Change to "Hello World!". Rightclicking in the window will open a Menu. Click in accept. In the new little window type your initials or nickname.
Now click in the "exclamation point" (yellow) and the text will change.
Oops! You need to change the size of the Text area (not the size of the letters)! In the "halo" drag the yellow button.
The halo has buttons to move the object, duplicate, erase etc.
Now click in the buttons having a little circle in the two windows we have used and we will have only the text in the desktop.
Draging up the tab "Navigator" click in "PUBLISH IT" and type a name for our "project".
In the new window it's easy to save it at YOUR disk. p> When you quit from your Squeak, you don't need to save it. The project is saved/published at the file..
In the folder My Squeak you will find the file: hello.001.pr.
Now , to put your application , your project (very simple program!) in the WWW you need to create a page having the lines:
<OBJECT ID="SqueakOCX Control" WIDTH=700 HEIGHT=400 ALIGN=center BORDER=2 CLASSID="CLSID:2BE9C39E-8386-4435-B337-FCDAD8EAB006" CODEBASE="http://www.squeakland.org/installers/SqueakPluginInstaller.exe"> <PARAM name="src" value="http://YOUR SITE/FOLDER/hello.001.pr"> <PARAM name="update" value="187"> <PARAM name="win32" value="Squeak3.2gamma of 12 January 2002 [latest update: #4879]"> <PARAM name="macos" value="Squeak3.1alpha of 16 May 2001 [latest update: #4081]"> <PARAM name="update_url" value="http://www.squeakland.org/update/">
You can define the size of the plugin window. The "figure" is created based in the point at left-hight of the Squeak desktop. So: if you dont see your Text in your page , move it for near this point.
You need to upload to your site the HTML page and the .PR file (aprox. 16 Kb).
Here you can see (if you have the plugin installed), our applicattion running. Funny to note: you have a complete Squeak desktop here! You can save our project to YOUR MySqueak folder!
WARNING: If the level of security of your Internet Explorer accepts ActiveX the plugin will be downloaded automaticaly NOW!If not change the level of secutity and refresh this page.
NEXT LESSON T. CONTENTS HOMEPAGE
