Scripting Example 30

; *****************************************************

; Example30.ftp

; =============

; This example shows how to use the "Window" support.

; From within scripts you can show forms with a few

; objects placed on it, like "text" and "Images".

; -----------------------------------------------------

; This example shows the use of this commands:

; SHOWINFO

; HIDEIFNO

;

; CREATEWINDOW

; ADDLABEL

; ADDIMAGE

; SHOWWINDOW

; HIDEWINDOW

; -----------------------------------------------------

; NOTE: This example should work on all PCs!

; *****************************************************

; This scripts just rolls down without anyone clicking

; buttons to close windows. So just execute the script

; and see the windows pop up and disappear again in

; a short period of time...

 

 

; This commands just shows the text within the doublequotes.

; - Note the "1" at the end of the command. This "1" identifies

; the windows to be NUMBER ONE. This means that you are able to use

; more than one window at a time... The second one would simply have

; a "2" instead of "1"...

ShowInfo "This is example text which sould be displayed in a small window..." 1

Waitseconds 3

HideInfo 1

Waitseconds 1

 

; When creating Text and images on a form you are working with

; First: The Number of the form to keep the widget.

; Second: the "Text" or "Imagefilename"

; Third: The cooordinates of the Left-uppermost and Right-Bottommost corners.

 

CreateWindow "1" "Prufu caption" "20" "30" "500" "300"

AddLabel "1" "This is just a sample text to show text added to a form" "20" "80"

; If the Bottom-rightmost corner is skipped for images then the iomage is

; automatically sized.

; Imagetypes can currently be: ".BMP" and/or ".ICO"

AddImage "1" "D:\TMail3\FTPClient\goup.ico" "20" "100"

ShowWindow "1"

Waitseconds "5"

HideWindow "1"