home *** CD-ROM | disk | FTP | other *** search
/ CD Shareware Magazine 1999 April / CD_Shareware_Magazine_31.iso / WIN95 / INTERNET / ftpctrl3b8.exe / %MAINDIR% / Scripts / Example30.ftp < prev    next >
Encoding:
Text File  |  1999-02-07  |  1.8 KB  |  54 lines

  1. ; *****************************************************
  2. ; Example30.ftp
  3. ; =============
  4. ; This example shows how to use the "Window" support.
  5. ; From within scripts you can show forms with a few
  6. ; objects placed on it, like "text" and "Images".
  7. ; -----------------------------------------------------
  8. ; This example shows the use of this commands:
  9. ;    SHOWINFO 
  10. ;    HIDEIFNO
  11. ;
  12. ;    CREATEWINDOW
  13. ;    ADDLABEL
  14. ;    ADDIMAGE
  15. ;    SHOWWINDOW
  16. ;    HIDEWINDOW
  17. ; -----------------------------------------------------
  18. ; NOTE: This example should work on all PCs!
  19. ; *****************************************************
  20. ; This scripts just rolls down without anyone clicking 
  21. ; buttons to close windows. So just execute the script
  22. ; and see the windows pop up and disappear again in
  23. ; a short period of time...
  24.  
  25.  
  26. ; This commands just shows the text within the doublequotes. 
  27. ; - Note the "1" at the end of the command. This "1" identifies
  28. ; the windows to be NUMBER ONE. This means that you are able to use 
  29. ; more than one window at a time... The second one would simply have
  30. ; a "2" instead of "1"...
  31. ShowInfo "This is example text which sould be displayed in a small window..." 1
  32. Waitseconds 3
  33. HideInfo 1
  34. Waitseconds 1
  35.  
  36. ; When creating Text and images on a form you are working with
  37. ; First: The Number of the form to keep the widget.
  38. ; Second: the "Text" or "Imagefilename"
  39. ; Third: The cooordinates of the Left-uppermost and Right-Bottommost corners.
  40.  
  41. CreateWindow "1" "Prufu caption" "20" "30" "500" "300"
  42. AddLabel "1" "This is just a sample text to show text added to a form" "20" "80"
  43. ; If the Bottom-rightmost corner is skipped for images then the iomage is
  44. ; automatically sized. 
  45. ; Imagetypes can currently be: ".BMP" and/or ".ICO"
  46. AddImage "1" "D:\TMail3\FTPClient\goup.ico" "20" "100"
  47. ShowWindow "1"
  48. Waitseconds "5"
  49. HideWindow "1"
  50.  
  51.  
  52.  
  53.  
  54.