home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 10: Diskmags / nf_archive_10.iso / MAGS / STFORMAT / STF04.MSA / 2ND_SIDE_GFADEMOS_WINDOW.LST < prev    next >
File List  |  1989-09-27  |  2KB  |  70 lines

  1. ' ******************************************************************
  2. ' *                                                                *
  3. ' *                          WINDOW.LST                            *
  4. ' *                                                                *
  5. ' *                Written for ST FORMAT MAGAZINE                  *
  6. ' *                                                                *
  7. ' * This is not a program, merely a list of the commands directly  *
  8. ' * available from Basic to control Windows.                       *
  9. ' ******************************************************************
  10. '
  11. '
  12. ' In GFA Basic there are 4 default windows, you can open these simply
  13. ' with the command:
  14. ' Openw n
  15. '
  16. ' EG:
  17. ' For N=1 To 4
  18. ' Openw N       ! note the windows have a title line by default
  19. ' Cls
  20. ' Print "Window ";N
  21. ' Next N
  22. '
  23. '
  24. '
  25. ' If you want to put a title in the window, use the command
  26. ' Titlew N,"Window "+Str$(N)
  27. ' EG:
  28. ' Titlew 1,"Window 1"
  29. '
  30. '
  31. ' You can set the position of contact of these default windows by
  32. ' giving an x and y position
  33. ' EG:
  34. ' Openw 1,120,120
  35. ' Cls
  36. ' Print "Window 1"
  37. '
  38. '
  39. ' For a High resolution screen these co-ordinates will be:
  40. '
  41. '  No.  Top Left.       Bottom Right.
  42. '  1    (0,19)          (x_pos,y_pos)
  43. '  2    (x_pos,19)      (639,y_pos)
  44. '  3    (0,y_pos)       (x_pos,399)
  45. '  4    (x_pos,y_pos)   (639,639)
  46. '
  47. ' ie:
  48. '
  49. '       --------------------------------- 19
  50. '       |               |               |
  51. '       |      1        |      2        |
  52. '       |               |               |
  53. '       |               |               |
  54. '       --------------------------------- y_pos
  55. '       |               |               |
  56. '       |      3        |      4        |
  57. '       |               |               |
  58. '       |               |               |
  59. '       ---------------------------------
  60. '       0              x_pos            639
  61. '
  62. '
  63. ' When opening a window, space must be given for drop-down menu's
  64. ' On a high resoultion screen, this is 19 pixels, and on Med/Low 11 pixels.
  65. '
  66. ' Openw 0 opens the whole screen without a title strip, or borders.
  67. '
  68. ' For more flexible window management, you will have to use
  69. ' Windtab or directly use the AES to control them.
  70.