home *** CD-ROM | disk | FTP | other *** search
QuickBASIC Tokenized Source | 1990-01-01 | 16.6 KB | 303 lines |
- swattr
- WPRINT
- WLOCATEO
- WATTR
- delayk
- swbuttonget
- swcattr
- WCATTR
- swclear-
- WCLEARm
- swclose"
- WOPEN
- WCLOSE
- swcloseall
- swcls
- WCSRON
- WCLS7
- swcolor
- WCOLORD
- @ swcopystr`
- prompt
- savescrn}
- WSETCSR0
- WWRAP7
- stpos
- WCOPYSTR1
- WCOPYSTR]
- function
- WCOPYSTR2
- restorescrn
- swcsroff
- WCSROFF
- swcsron
- swcsrpos
- WCSRPOS1
- WCSRPOS
- WCSRPOS2C
- swdelrow
- WDELROWZ
- swhint
- WHINT
- swinsrow
- WINSROW
- swlint
- WLINTy
- swlocate%
- swmouse
- mouse
- mouse.status
- WMOUSE1
- WMOUSE
- MSHOW
- swopent
- swprint
- swrattrP
- WRATTR
- swrev
- @ swrevline
- WREVLINE1
- WREVLINE
- WREVLINE2
- offset
- WREVLINE3
- swselect
- default
- WSELECT
- swsetcsr
- @ swvscroll
- swwrap
- accept
- edits
- cattr
- swclear
- !- WCLEAR
- WCLEAR (window_id,x1,y1,x2,y2)`
- WCLEAR~~ Clears an area within a~ specified window. Attribute`
- ~ of cleared area is the current~ attribute of window. Use WCOLOR`
- ~ to change window attribute.`
- The WCLEAR function clears part of~ this window filled with asterisks.~`
- swcattr
- !- WCATTR
- WCATTR (window_id,x,attribute)`
- WCATTR~~ Changes attribute of a column~ within specified window.`
- This window contains some possible~~ colors which affect each column"`
- ~~ of text. This paragraph was~~ displayed before executing WCATTR.`
- swbuttonget
- !- WBUTTONGET
- WBUTTONGET (window_id,starting_focus,starting_button,num_buttons,result)`
- WBUTTONGET~~ Allows selection of pre-defined~ input buttons.`
- The input buttons at the bottom~ of this screen are done by the`
- ~ WBUTTONSET/WBUTTONGET functions.~~ See WBUTTONSET or 'Proceed'`
- ~ for a full demonstration.`
- swattr
- - WATTR
- WATTR (window_id,attribute)"`
- WATTR~~ Changes attribute of the~ entire window screen."`
- Notice the different attributes.`
- swdelrow
- !- WDELROW
- WDELROW (window_id,row)"`
- WDELROW~~ Deletes a row of characters~ within specified window and`
- ~ moves other rows beneath - up."`
- ~~ Handy for editor functions."`
- In this example, the third row~ down will be deleted and all"`
- ~ the other rows will move up.~ Press ENTER to delete row...`
- Row 3 deleted.`
- swcsrpos
- !- WCSRPOS
- WCSRPOS (window_id,col,row)"`
- WCSRPOS~~ Returns relative cursor position~ for specified window."`
- Use arrow keys to move cursor.~ Press ESC to quit this screen."`
- Sets the physical cursor position. This was necessary for this
- demo because no writing is being done to the output window.
- Any WPRINT (or WINPUT) automatically sets the physicaln
- cursor to within the WPRINT'd window (if window cursor is on).h
- Current Col:
- Row:)
- swcsron
- !- WCSRON
- WCSRON (window_id)`
- WCSRON~~ Turns on visible cursor for~ specified window."`
- Press ANY key to turn~ on the cursor...`
- ~ The cursor has been turned on.`
- swcsroff
- !- WCSROFF
- WCSROFF (window_id)"`
- WCSROFF~~ Turns off visible cursor for~ specified window."`
- Press ANY key to turn~ off this flashing cursor..."`
- ~ The cursor has been turned off."`
- swcopystr
- !- WCOPYSTR
- WCOPYSTR (window_id,string_start,num_elements,array$(),array_start)"`
- WCOPYSTR~~ Copies a string array into a~ window. Can specify starting`
- ~ position within the string.~ Very Fast!"`
- FUNCTION LIST"
- Use arrow keys~ to move around~ text window."`
- ~~ PgUp/PgDn=page~~ ESC to Exit"`
- swcolor
- !- WCOLOR
- WCOLOR (window_id,attribute)`
- WCOLOR~~ Sets current window attribute~ for subsequent WPRINT or`
- ~ WCOPYSTR functions.`
- This is the attribute used when~ the window was opened. "`
- This~ red-on-cyan color was just~ set with WCOLOR."`
- swcls
- !- WCLS
- WCLS (window_id)`
- WCLS~~ Clears the entire window and~ homes the window cursor to"`
- ~ to (0,0) relative to inside~ of the window."`
- Notice this cursor. Press~ any key to clear window."`
- This window was cleared.`
- swcloseall
- !- WCLOSEALL
- WCLOSEALL `
- WCLOSEALL~~ Resets internal window pointers."`
- ~ Doesn't physically close any`
- ~ opened windows on the screen."`
- ~ Best to use this function at~ the beginning of your program.`
- swclose
- !- WCLOSE
- WCLOSE (window_id)`
- WCLOSE~~ Closes a specified window and~ restores the screen under the"`
- ~ window. If windows overlap,~ windows must be closed in"`
- ~ reverse order they were opened.`
- ANY WINDOW
- This window was opened on top of~ the other windows."`
- ~~ Press any key to close this~ window and restore the screen~ underneath.`
- swhint
- !- WHINT
- WHINT (window_id,row)"`
- WHINT~~ Makes a row of characters~ within specified window`
- ~ high-intensity, regardless of~ color combinations in the row."`
- Blue `
- Red "`
- Magenta "`
- White "`
- ~~ Press any key to highlight~ above row..."`
- ~~ Row 0 highlighted.`
- swsetcsr
- !- WSETCSR
- A monochrome display has 14 lines available for the cursor
- (starts at 0, ends at 13)
- A color display has 8 lines available for the cursor
- (starts at 0, ends at 7)e
- In this demonstration, the lines for the smaller cursor are starting fromi
- 5 and ending at 7. (bottom 3 lines of a color display)
- WSETCSR (window_id,start,end)"`
- WSETCSR~~ Sets the size of the cursor~ within specified window`
- Press ENTER to make cursor small.`
- notice lines 5-7 are defined for the cursor for window 2
- ~~ This cursor is smaller.`
- ~~ Press any key to continue..."`
- swselect
- !- WSELECT
- WSELECT (window_id)"`
- WSELECT~~ Selects a default window"`
- When a window_id is 0, ~ any window operations will be"`
- ~ done using the default window.~~ This window was treated as the"`
- ~ default window for WPRINT'ing~ this text."`
- swrevline
- !- WREVLINE
- WREVLINE (window_id,row)`
- WREVLINE~~ Reverses foreground/background~ attributes of specified row in"`
- ~ window. Can be used in~ highlighting a menu option, etc."`
- ~ Press up/down arrows to move~ reverse bar up or down."`
- ~ Press ESC to quit WREVLINE demo."`
- down arrow pressed
- up arrow pressed
- swrev
- !- WREV
- WREV (window_id,mode)"`
- WREV~~ Reverses foreground/background~ attributes of specified window.`
- ~ Mode=1 to reverse inside window.~ Mode=0 to reverse window`
- ~ including window borders.`
- ~ This is mode 1 - reverse window only.`
- restore reversed window to normal
- ~ And now mode 0 - reverse entire window including borders."`
- swrattr
- !- WRATTR
- WRATTR (window_id,y,attribute)`
- WRATTR~~ Changes attribute of a row~ within specified window."`
- ~ This window contains some possible~ colors which affect each row`
- ~ of text. This paragraph was~ displayed before executing WRATTR.`
- swprint
- !- WPRINT
- WPRINT (window_id,output$)`
- WPRINT~~ Outputs a string to a specified~ window."`
- Three windows will appear on~ the screen and a count will`
- ~ be done in them. Demonstrates~ WPRINT and the fact that`
- ~ each window has its own~ cursor.`
- WINDOW ONE
- WINDOW TWO
- WINDOW THREE
- Count in one position: "
- swopen
- !- WOPEN
- WOPEN (x1,y1,x2,y2,style,attribute,title$,array(),window_id)`
- WOPEN~~ Opens a new window and saves~ portion of the screen under"`
- ~ window into array(). Up to 32~ windows may be opened at~ one time.`
- Proceed to next demo (WPRINT)~ to see an example of WOPEN."`
- swlocate
- !- WLOCATE
- WLOCATE (window_id,col,row)"`
- WLOCATE~~ Sets virtual cursor location~ within specified window.`
- ~ All subsequent WPRINT and WINPUT~ functions start output at"`
- ~ the new cursor location."`
- ~~ Notice different WLOCATE values."`
- swlint
- !- WLINT
- WLINT (window_id,row)"`
- WLINT~~ Makes a row of characters~ within specified window`
- ~ low-intensity, regardless of~ color combinations in the row.`
- Blue `
- Red "`
- Magenta "`
- White "`
- ~~ Press any key to make above~ row low-intensity...`
- ~~ Row 0 low-intensity.`
- swinsrow
- !- WINSROW
- WINSROW (window_id,row)"`
- WINSROW~~ Inserts a row of characters~ within specified window and`
- ~ moves other rows down."`
- ~~ Handy for editor functions."`
- In this example, the second row~ and all other rows beneath it"`
- ~ will be moved down.~ Press ENTER to insert at row 2"`
- ---- A row was inserted here ----"`
- swvscroll
- !- WVSCROLL
- WVSCROLL (window_id,times,direction)`
- WVSCROLL~~ Scroll specified window"`
- ~ vertically for specified number~ of times up or down`
- Works the same as VSCROLL, but~ for a currently opened window."`
- ~~ See VSCROLL for an example."`
- swmouse
- !- WMOUSE
- WMOUSE (window_id,button_status,column,row,flag)`
- WMOUSE~~ Returns the current position~ of the mouse cursor`
- relative~ to specified window"`
- As you move the mouse cursor~ relative to this window the values"`
- ~ below will change.~ Press ESC to exit demo"`
- keeps cursor on while mouse is not movingu
- because WPRINT turns off the mouse cursorr
- row="
- column=")
- button=")
- ")
- ~ On border `
- ~ Within window `
- ~ Outside window "`
- swwrap
- !- WWRAP
- WWRAP (window_id,mode)`
- WWRAP~~ Selects the mode for outputting~ to specified window`
- If mode=0, all text sent to the~ window will be wrapped around"`
- ~ to the next line.`
- ~~ If mode=1, the text will be lost~ when it exceeds boundaries of the`
- ~ window, unless a C/R is sent.`
- WWRAP"
- ~ The next line shows mode 0, wrap around."`
- ~~ QuickWindows is a library chock-full of functions to aid the BASIC programmer in designing windows."
- ~~~~ The next line contains the same phrase, but with mode 1.`
-