home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
MISC
/
PBAPI10.ZIP
/
APIDOCS.ZIP
/
SCREEN.DOC
< prev
next >
Wrap
Text File
|
1998-02-21
|
3KB
|
81 lines
Author....... : Gary Price
Copyrighted by: Freejack's Software 1997-98
SCREEN API for TriBBS v10.x/11.x written in PowerBasic v3.5
---------------------------------------------------------------------------
The SCREEN unit is supplied as an effort to help programmers design better
looking GUI's for their Main Program Design. The SCREEN unit is declared in
PBAPI10.INC as follows:
SUB SaveScreen(ScreenID AS STRING, _
TopRow AS INTEGER, _
LeftColumn AS INTEGER, _
BottomRow AS INTEGER, _
RightColumn AS INTEGER, _
Shadow AS INTEGER)
SUB RestoreScreen(ScreenID AS STRING)
SUB PutSavedScreen(ScreenID AS STRING, _
TopRow AS INTEGER, _
LeftColumn AS INTEGER)
SUB POPWIND (Title AS STRING, _
Toprow AS INTEGER, _
Leftcolumn AS INTEGER, _
Bottomrow AS INTEGER, _
Rightcolumn AS INTEGER, _
Attr AS INTEGER, _
Shadow AS INTEGER, _
Border AS INTEGER)
---------------------------------------------------------------------------
SUB SaveScreen(ScreenID AS STRING, _
TopRow AS INTEGER, _
LeftColumn AS INTEGER, _
BottomRow AS INTEGER, _
RightColumn AS INTEGER, _
Shadow AS INTEGER)
The SaveScreen sub will allow you to save a portion of your scrren just
prior to popping open another window. This will allow you to call the
Restore sub to put back the saved portion of your screen later in your
program and keep from having to rewrite a complete full screen each time.
---------------------------------------------------------------------------
SUB RestoreScreen(ScreenID AS STRING)
The RestoreScreen works along with the SaveScreen Sub. This will allow you
to bring back the saved portion of your screen after saving it back to it's
original location.
---------------------------------------------------------------------------
SUB PutSavedScreen(ScreenID AS STRING, _
TopRow AS INTEGER, _
LeftColumn AS INTEGER)
The PutSaveScreen sub works basically like the RestoreScreen, except it will
allow you to locate and restore to a new starting x1, y1 location instead of
the orginal location it was saved from.
---------------------------------------------------------------------------
SUB POPWIND (Title AS STRING, _
Toprow AS INTEGER, _
Leftcolumn AS INTEGER, _
Bottomrow AS INTEGER, _
Rightcolumn AS INTEGER, _
Attr AS INTEGER, _
Shadow AS INTEGER, _
Border AS INTEGER)
The Popwind sub will allow you to pop open a window on top of any portion
of your main screen. Calling SaveScreen first, then Popwind, and then
RestoreScreen will give your program that windows look and feel in Dos.
To calculate a color number for the Attr, select a color from 1 to 15, then
mulptiply x 16. If you want to do forground, then add the number of color to
the sum of the multiplied answer like so: 1 x 16 = 16 for Blue Background,
add 15 for a total of 31 to give you Blue background with White forground.