Weekly Qbasic and Qb64 Lesson Topics
January 21, 2018, 12:51:19 pm
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Want to see a specific Tutorial? ASK!
 
  Home Help Search Arcade Links Staff List Login Register  

SCREENS


Pages: [1]
  Print  
Author Topic: SCREENS  (Read 328 times)
GarrisonRicketson
Admin
Administrator
Hero Member
*****
Posts: 583



WWW
« on: October 03, 2011, 08:28:20 pm »

 Ok, now this is about SCREENS,..you have various screen options,
Example
Code:
SCREEN 0
PRINT "SCREEN 0"
This is screen 0 with out any colors.
On the qb64 wiki SCREENS There is some detailed expanations,
of screens,...
Quote
Taken from the qb64 wiki:
SCREEN mode% [, , active_page, visual_page]

No statement defaults the program to SCREEN 0 text ONLY mode.
The SCREEN mode values available today are 0 to 2 and 7 to 13 listed below.
The empty comma disables color when any value is used. DO NOT USE! Include the comma ONLY when using page flipping.
If the SCREEN mode supports pages, the Active page is the page to be worked on while visualpage is the one displayed.
A SCREEN statement that changes screen modes also clears the screen like CLS. Nothing on the screen is retained.
Some screen mode text sizes are adjustable with and some support    WIDTH and some support   PCOPY   and page flipping.
« Last Edit: October 03, 2011, 08:46:35 pm by GarrisonRicketson » Report Spam   Logged

Social Buttons

GarrisonRicketson
Admin
Administrator
Hero Member
*****
Posts: 583



WWW
« Reply #1 on: October 03, 2011, 08:55:03 pm »

This is a Example, also taken from the qb64 wiki:
http:// http://qb64.net/wiki/index.php?title=SCREEN
Code:
 
SCREEN 0
PRINT "This is SCREEN 0 - only text is allowed!"
FOR S = 1 TO 13
   IF S < 3 OR S > 6 THEN
     DO: SLEEP: LOOP UNTIL INKEY$ <> ""
     SCREEN S
     PRINT "This is SCREEN"; S; " - can use text and graphics!"
       IF S = 2 OR S = 11 THEN PRINT "Monochrome - no COLOR statements!"
       IF S = 10 THEN
         COLOR 2: PRINT "This SCREEN has only 4 colors. Black and 3 white: 2 blinks.
         CIRCLE (100,100), 50, 2
       ELSE : CIRCLE (100,100), 100, S
       END IF
   END IF
NEXT
SLEEP
SYSTEM
There are a lot more examples, on the wiki, you can also try makeing up your own, and seeing what they look like useing different screens.
 This actually should be something you get familiar with when you first start,..So you have some idea as to which screen mode is best for the prgram you are trying to do.
from Garry
« Last Edit: October 03, 2011, 09:07:29 pm by GarrisonRicketson » Report Spam   Logged


Pages: [1]
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Buy traffic for your forum/website
traffic-masters
Powered by SMF | SMF © 2016, Simple Machines