home *** CD-ROM | disk | FTP | other *** search
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[ Page 1 ]
- BASDLX Documentation Supplement
- BASDLX Version 1.6 Copyright 1986,1987 By Gustavo H. Verdun
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- Function Name : BOX
- Arguments : ([width%],[height%],[FRAME$],color%,mode%)
-
- FRAME$ (must 9 characters long)
-
- This string consists of 9 characters. All the characters are `place dependant'
-
- String Structure:
-
- Character Frame Representation
- --------- --------------------
- Top Line: 1 Top left corner
- 2 Top horizontal
- 3 Top right corner
-
- Center Line(s): 4 Left vertical
- 5 Box fill character (usually a blank ' ')
- 6 Right vertical
-
- Bottom Line: 7 Bottom left corner
- 8 Bottom horizontal
- 9 Bottom right corner
-
- Exapmle :
-
- locate 1,1
- call box(78,23,"**** ****",7,1) ' Try it !
- call box(78,23,"╓─╖║ ║╙─╜",7,1)
- call box(78,23,"┌─┐│ │└─┘",7,1)
- call box(78,23,"╔═╗║ ║╚═╝",7,1)
- call box(78,23,"╒═╕│ │╘═╛",7,1)
- 'rem will grow 4 full size boxes on the screen
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[ Page 2 ]
- BASDLX Documentation Supplement
- BASDLX Version 1.6 Copyright 1986,1987 By Gustavo H. Verdun
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- Function Name : GRID
- Arguments : (x%(strt%),y%(strt2%),[FRAME$],color%,mode%)
-
- FRAME$ (must 16 characters long)
-
- This string consists of 16 characters. All the characters are `place dependant'
-
- String Structure:
-
- Character Frame Representation
- --------- --------------------
- Top Line: 1 Top left corner
- 2 Top horizontal
- 3 Middle Top/Vertical crossing
- 'T'-like
- 4 Top right corner
-
- Cell Line(s): 5 Left vertical
- 6 Cell fill character (usually a blank ' ')
- 7 Inner vertical
- 8 Right vertical
-
- Row Separator: 9 Left-side
- 10 horizontal
- 11 inner crossing (i.e. '+'character)
- 12 Right
-
- Bottom Line: 13 Bottom left corner
- 14 Bottom horizontal
- 15 Middle bottom/vertical crossing
- upside-down 'T'-like crossing
- 16 Bottom right corner
-
- Example :
- option base 1 'rem Option base 1 is not necessary, you may use option base
- 'rem 0 if you like but, remember to adjust the starting of the array (strt).
- dim x%(4),y%(5)
- .
- .
- x%(1)=20: x%(2)=20: x%(3)=20: x%(4)=-1 'rem last element must be -1
- y%(1)=1: y%(2)=1: y%(3)=1: y%(4)=0: y%(5)=-1
- locate 1,1: attr% = 7 : mode% = 1
- call grid(x%(1),y%(1),"***** **********",attr%,mode%) 'Try it !
- call grid(x%(1),y%(1),"╓─╥╖║ ║║╟─╫╢╙─╨╜",attr%,mode%)
- call grid(x%(1),y%(1),"┌─┬┐│ ││├─┼┤└─┴┘",attr%,mode%)
- call grid(x%(1),y%(1),"╔═╦╗║ ║║╠═╬╣╚═╩╝",attr%,mode%)
- call grid(x%(1),y%(1),"╒═╤╕│ ││╞═╪╡╘═╧╛",attr%,mode%)
- 'rem will grow 4 grids on the screen (on top of each other)
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[ Page 3 ]
- BASDLX Documentation Supplement
- BASDLX Version 1.6 Copyright 1986,1987 By Gustavo H. Verdun
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- The following functions did not make it to the documentation :
-
- Function Name : GRIDSPAN
- Arguments : (axis%(strt%),span%)
- Type : BASDLX service
- Purpose : Returns the span of a grid from end to end.
-
- Description :
-
- xory%, here you may place the array of either the X or Y axis of the grid.
-
- span% the function returns the Span the grid for the given axis.
-
- Example :
- option base 1 'rem Option base 1 is not necessary, you may use option base
- 'rem 0 if you like but, remember to adjust the starting of the array (strt).
- dim x%(4),y%(5)
- x%(1)=20: x%(2)=20: x%(3)=20: x%(4)=-1 'rem last element must be -1
- y%(1)=1: y%(2)=1: y%(3)=1: y%(4)=0: y%(5)=-1
- locate 1,1
- call gridspan(x%(1),xspan): print "Grid width is :";xspan
- call gridspan(y%(1),yspan): print "Grid height is :";yspan
- locate 3,1: attr% = 7 : mode% = 1
- call grid(x%(1),y%(1),"┌─┬┐│ ││├─┼┤└─┴┘",attr%,mode%)
-
- Function Name : MCURSORM
- Arguments : ([cursor%])
- Type : Mouse Support
- Purpose : Activates/Deactivates the Mouse cursor
-
- Description :
- cursor%, if 0 then deactivates the cursor, if not 0 then it activates it.
-
- Example:
-
- call mcursorm(1)
- .
- .
- call mcursorm(0)
-
- Function Name : MLOCATIONM
- Arguments : (Vertival%,Horizontal%,[Mode%])
- Type : Mouse Support
- Purpose : Returns the cursor coordinates.
-
- Description :
- Verical%, Horizontal%, Both values are returned by the function.
-
- [mode%] if 0 then it will return the cursor values in the Virtual mode.
- If non-zero it will return the cursor values adjusted to the current screen
- mode.