home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zodiac Super OZ
/
MEDIADEPOT.ISO
/
FILES
/
13
/
N_B_V203.ZIP
/
A_BEVEL.DMO
< prev
next >
Wrap
Text File
|
1996-07-04
|
3KB
|
59 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME A_BEVEL .DMO ║ by ╘════════════════─ ║ ║
│ │ ║ Don Schullian, Jr. ║ ║
│ ╘══════════════════════════╝ ║ ║
│ A license is hereby granted to the holder to use this source code in ║ ║
│ any program, commercial or otherwise, without receiving the express ║ ║
│ permission of the copyright holder and without paying any royalties, ║ ║
│ as long as this code is not distributed in any compilable format. ║ ║
│ IE: source code files, PowerBASIC Unit files, and printed listings ║ ║
╘═╤═════════════════════════════════════════════════════════════════════╝ ║
│ .................................... ║
╘═══════════════════════════════════════════════════════════════════════╝
These boxes are good, general purpose buttons. Notice how the border of
the buttons change as you make the buttons "deeper". This is done to
keep the definition of the button.
1 to 3 pixel borders are simply that. The 4 pixel border creates a
simple 1pixel lip and 5 and above get really fancy by creating an
embossed inner border and puts highlights on the corners. They all put
the "black" border around the button to add definition.
$endif
'.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
'┌────────────────────────────────
$INCLUDE "DAS-NB01.INC" '│
$INCLUDE "DAS-NBV1.INC" '│
$INCLUDE "DAS-NBV2.INC" '│
'│
CLS '│ get over to VGA color screen
SCREEN 12 '│
GraphicSETUP '│ set-up for DASoft's graphics
fLoadDAScolor '│ load the 3D color arrangements
'│
DIM XY%(3,10) '│ an Event Array where
'│ XY%(0,x) = left col
FOR Depth? = 1 TO 7 '│ XY%(1,x) = top row
LOCATE ( XY%(1,0) \ 16 ) + 2, 74 '│ XY%(2,x) = right col
PRINT USING "#pixels"; Depth?; '│ XY%(3,x) = bottom row
XY%(0,0) = 0 '│ back to column 0
XY%(3,0) = XY%(1,0) + 64 '│ 65 pixel tall boxes
DO '│
XY%(2,0) = XY%(0,0) + 64 '│ 65 pixel wide boxes
IF XY%(2,0) > 639 THEN EXIT LOOP '│ all done with this line
GBoxBevelA XY%(0,0), Depth?, 4, 9, 14 '│ call it
INCR XY%(0,0), 64 '│ next box right
LOOP '│
INCR XY%(1,0), 64 '│ next row of boxes
NEXT '│
'│
WHILE NOT INSTAT : WEND '│ a clean exit
CLS : PALETTE : SCREEN 0 : END '└─────────────────────────────────