home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / BASIC / BASDLX16.ZIP / BASDLX.SUP < prev    next >
Encoding:
Text File  |  1987-09-08  |  4.7 KB  |  149 lines

  1. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[ Page 1 ]
  2.                      BASDLX Documentation Supplement
  3.          BASDLX Version 1.6 Copyright 1986,1987 By Gustavo H. Verdun
  4. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  5.  
  6.  
  7. Function Name : BOX
  8. Arguments     : ([width%],[height%],[FRAME$],color%,mode%)
  9.  
  10. FRAME$ (must 9 characters long)
  11.  
  12. This string consists of 9 characters. All the characters are `place dependant'
  13.  
  14. String Structure:
  15.  
  16.          Character        Frame Representation
  17.          ---------        -------------------- 
  18. Top Line:    1        Top left corner
  19.         2        Top horizontal 
  20.         3        Top right corner
  21.  
  22. Center Line(s):    4        Left vertical
  23.         5        Box fill character (usually a blank ' ')
  24.         6        Right vertical
  25.  
  26. Bottom Line:    7        Bottom left corner
  27.         8        Bottom horizontal 
  28.         9        Bottom right corner
  29.  
  30. Exapmle :
  31.  
  32. locate 1,1
  33. call box(78,23,"**** ****",7,1) ' Try it !
  34. call box(78,23,"╓─╖║ ║╙─╜",7,1)
  35. call box(78,23,"┌─┐│ │└─┘",7,1)
  36. call box(78,23,"╔═╗║ ║╚═╝",7,1)
  37. call box(78,23,"╒═╕│ │╘═╛",7,1)
  38. 'rem will grow 4 full size boxes on the screen
  39.  
  40. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[ Page 2 ]
  41.                      BASDLX Documentation Supplement
  42.          BASDLX Version 1.6 Copyright 1986,1987 By Gustavo H. Verdun
  43. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  44.  
  45. Function Name : GRID
  46. Arguments     : (x%(strt%),y%(strt2%),[FRAME$],color%,mode%)
  47.  
  48. FRAME$ (must 16 characters long)
  49.  
  50. This string consists of 16 characters. All the characters are `place dependant'
  51.  
  52. String Structure:
  53.  
  54.          Character        Frame Representation
  55.          ---------        -------------------- 
  56. Top Line:    1        Top left corner
  57.         2        Top horizontal 
  58.         3        Middle Top/Vertical crossing
  59.                 'T'-like
  60.         4        Top right corner
  61.  
  62. Cell Line(s):    5        Left vertical
  63.         6        Cell fill character (usually a blank ' ')
  64.         7        Inner vertical
  65.         8        Right vertical
  66.  
  67. Row Separator:    9        Left-side 
  68.         10        horizontal 
  69.         11        inner crossing (i.e. '+'character)
  70.         12        Right
  71.  
  72. Bottom Line:    13        Bottom left corner
  73.         14        Bottom horizontal 
  74.         15        Middle bottom/vertical crossing
  75.                 upside-down 'T'-like crossing
  76.         16        Bottom right corner
  77.  
  78. Example :
  79. option base 1    'rem Option base 1 is not necessary, you may use option base
  80. 'rem 0 if you like but, remember to adjust the starting of the array (strt).
  81. dim x%(4),y%(5)
  82. .
  83. .
  84. x%(1)=20: x%(2)=20: x%(3)=20: x%(4)=-1 'rem last element must be -1
  85. y%(1)=1: y%(2)=1:  y%(3)=1:  y%(4)=0:  y%(5)=-1
  86. locate 1,1: attr% = 7 : mode% = 1 
  87. call grid(x%(1),y%(1),"***** **********",attr%,mode%) 'Try it !
  88. call grid(x%(1),y%(1),"╓─╥╖║ ║║╟─╫╢╙─╨╜",attr%,mode%)
  89. call grid(x%(1),y%(1),"┌─┬┐│ ││├─┼┤└─┴┘",attr%,mode%)
  90. call grid(x%(1),y%(1),"╔═╦╗║ ║║╠═╬╣╚═╩╝",attr%,mode%)
  91. call grid(x%(1),y%(1),"╒═╤╕│ ││╞═╪╡╘═╧╛",attr%,mode%)
  92. 'rem will grow 4 grids on the screen (on top of each other)
  93.  
  94. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[ Page 3 ]
  95.                      BASDLX Documentation Supplement
  96.          BASDLX Version 1.6 Copyright 1986,1987 By Gustavo H. Verdun
  97. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  98. The following functions did not make it to the documentation :
  99.  
  100. Function Name : GRIDSPAN
  101. Arguments     : (axis%(strt%),span%)
  102. Type          : BASDLX service
  103. Purpose       : Returns the span of a grid from end to end. 
  104.  
  105. Description   :
  106.  
  107. xory%, here you may place the array of either the X or Y axis of the grid.
  108.  
  109. span% the function returns the Span the grid for the given axis.
  110.  
  111. Example :
  112. option base 1    'rem Option base 1 is not necessary, you may use option base
  113. 'rem 0 if you like but, remember to adjust the starting of the array (strt).
  114. dim x%(4),y%(5)
  115. x%(1)=20: x%(2)=20: x%(3)=20: x%(4)=-1 'rem last element must be -1
  116. y%(1)=1: y%(2)=1:  y%(3)=1:  y%(4)=0:  y%(5)=-1
  117. locate 1,1
  118. call gridspan(x%(1),xspan): print "Grid width  is :";xspan
  119. call gridspan(y%(1),yspan): print "Grid height is :";yspan
  120. locate 3,1: attr% = 7 : mode% = 1 
  121. call grid(x%(1),y%(1),"┌─┬┐│ ││├─┼┤└─┴┘",attr%,mode%)
  122.  
  123. Function Name : MCURSORM
  124. Arguments     : ([cursor%])
  125. Type          : Mouse Support
  126. Purpose       : Activates/Deactivates the Mouse cursor
  127.  
  128. Description   :
  129. cursor%, if 0 then deactivates the cursor, if not 0 then it activates it.
  130.  
  131. Example:
  132.  
  133. call mcursorm(1)
  134. .
  135. .
  136. call mcursorm(0)
  137.  
  138. Function Name : MLOCATIONM
  139. Arguments     : (Vertival%,Horizontal%,[Mode%])
  140. Type          : Mouse Support
  141. Purpose       : Returns the cursor coordinates.
  142.  
  143. Description   :
  144. Verical%, Horizontal%, Both values are returned by the function.
  145.  
  146. [mode%] if 0 then it will return the cursor values in the Virtual mode.
  147. If non-zero it will return the cursor values adjusted to the current screen 
  148. mode.
  149.