home *** CD-ROM | disk | FTP | other *** search
- 'This $Include file is used with PBWindow.Pbu to load Windows for use
- 'with PowerBasic. Routined in this $include, and in the Unit, PWindow.PBU
- 'are (c) 1987, 1988, 1989, 1990 Barry Erick All Rights Reserved.
-
-
- ' The declares are not necessary and are for your information.
- DECLARE FUNCTION GetAttribute%(Integer,Integer)
- DECLARE SUB Getforandback(Integer,integer,integer)
- DECLARE SUB Prtbox(Integer,Integer,STRING)
- DECLARE SUB WritVidP()
- DECLARE SUB Rackett()
- DECLARE SUB RemoveBox()
- DECLARE SUB BoxTitle(Integer,STRING,Integer,Integer)
- DECLARE SUB MakeBox(Integer,Integer,Integer,Integer,Integer,Integer,_
- Integer,Integer,Integer,Integer,Integer)
- DECLARE SUB ZoomBox(Integer,Integer,Integer,Integer,Integer,Integer,_
- Integer,Integer,Integer,Integer,Integer)
- DECLARE SUB Boxscroll(Integer,Integer,Integer)
- DECLARE SUB CtrBox(Integer,STRING)
- DECLARE SUB CtrAllBox(Integer,Integer,STRING)
- DECLARE SUB PrtEol(Integer,Integer)
- DECLARE SUB PrtEolBox(Integer,Integer,String)
- DECLARE SUB NewBoxColor(Integer,Integer)
- DECLARE SUB PrtAttrBox(INTEGER,Integer,String,Integer,Integer)
- DECLARE SUB BuildMenu(Integer,Integer,Integer,Integer,_
- Integer,Integer,Integer,Integer,Integer,STRING ARRAY,Integer,_
- Integer)
- DECLARE SUB ClearBox(Integer,Integer)
- DECLARE SUB Recolor(Integer,Integer,Integer,Integer)
- DECLARE SUB WriteScreenArea(Integer,Integer,Integer,Integer,String,String)
- DECLARE SUB PBWindowInit()
- DECLARE SUB ScreenInit(Integer,Integer)
- DECLARE SUB SaveScreenArea(Integer,Integer,Integer,_
- Integer,String,String)
-
- PUBLIC Max.Window%,AutoBuildTime% 'max num of windows, automatic time
- PUBLIC Wpt% 'current window pointer
- PUBLIC PBWr%(),PBWc%(),PBWh%(),PBWw%() 'row,colum, height, width
- PUBLIC Shadows%() 'type of shadow for each (wpt%)
- PUBLIC noise%(),boxkinw%() 'is noise active and type of box for each wpt%
- PUBLIC vert$() ' for parsing words for title
- PUBLIC attrs%() ' each wpt% attribute
- PUBLIC boxborderattrs%() 'each wpt border attribute
- PUBLIC mlist$() 'names of %MaxMenuList
- PUBLIC NoNoise% 'True = do not make noise
- PUBLIC mbc% ' last windows background color
- PUBLIC mfc% ' last windows foreground color
- PUBLIC mbfc%,mbbc% ' last windows border foreground and background color
- PUBLIC fc%,bc%,bfc%,bbc%
- PUBLIC Backc%,Forec%
- PUBLIC ScreenSegment%,RetraceMode% 'users screen segment and snow check.
- PUBLIC IsColr%,VidMode%
- PUBLIC Bar3or4Off%, Bar0to2Off%
- PUBLIC UnderDevelopment%
-
-
- %MaxmenuList = 20 ' DO NOT CHANGE, It is 20 in the .PBU
- ' and this is for the user's program and the two
- 'must match. This MAY change in future versions
- Bar3or4Off% = 0 'default values
- Bar0to2Off% = 3 'see doc file
- UnderDevelopment% = 0 'this can be changed in your program while
- 'you are developing your program
- 'DO NOT CHANGE IT HERE, but add it to
- 'your program if you want to check for
- 'parameter errors in makebox. This should
- 'be after the $Include statement in your
- 'program. When development is finished,
- 'either remove the statement you added,
- 'or make it %False. To make it work, use
- ' UnderDevelopment% = %True in the program
- ' or UnderDevelopment = -1
- $LINK "PBWindow.pbu"
- CALL PbWindowInit 'call the initialization routine