Revision history for KeyPgScreenset


Revision [21128]

Last edited on 2016-03-13 10:38:51 by fxm [Formatting]

No Differences

Revision [20510]

Edited on 2016-02-10 16:08:23 by DkLwikki [Update link format]
Additions:
[[KeyPgDeclare|declare]] [[KeyPgSub|sub]] **Screenset** ( [[KeyPgByval|byval]] //work_page// [[KeyPgAs|as]] [[KeyPgLong|long]] = -1, [[KeyPgByval|byval]] //visible_page// [[KeyPgAs|as]] [[KeyPgLong|long]] = -1 )
##**Screenset**## allows to set the current working page and the current visible page. Page numbers range from ##0## to ##//num_pages// - 1##, where ##//num_pages//## is the number of pages specified when setting the graphics mode with ##[[KeyPgScreenres|Screenres]]## or ##[[KeyPgScreengraphics|Screen]]##. You can use this function to achieve page-flipping or double-buffering.
##**Screenset**## provides one method of writing to the screen without instantly displaying changes to the user. See also ##[[KeyPgScreenlock|Screenlock]]## / ##[[KeyPgScreenunlock|Screenunlock]]## for an alternative method of doing this.
- Not available in the //[[CompilerOptlang|-lang qb]]// dialect unless referenced with the alias ##**""__Screenset""**##.
- ##[[KeyPgScreengraphics|Screen (Graphics)]]##
- ##[[KeyPgScreenres|Screenres]]##
- ##[[KeyPgScreencopy|Screencopy]]##
- ##[[KeyPgScreenlock|Screenlock]]##
- ##[[KeyPgScreenunlock|Screenunlock]]##
Deletions:
[[KeyPgDeclare declare]] [[KeyPgSub sub]] **Screenset** ( [[KeyPgByval byval]] //work_page// [[KeyPgAs as]] [[KeyPgLong long]] = -1, [[KeyPgByval byval]] //visible_page// [[KeyPgAs as]] [[KeyPgLong long]] = -1 )
##**Screenset**## allows to set the current working page and the current visible page. Page numbers range from ##0## to ##//num_pages// - 1##, where ##//num_pages//## is the number of pages specified when setting the graphics mode with ##[[KeyPgScreenres Screenres]]## or ##[[KeyPgScreengraphics Screen]]##. You can use this function to achieve page-flipping or double-buffering.
##**Screenset**## provides one method of writing to the screen without instantly displaying changes to the user. See also ##[[KeyPgScreenlock Screenlock]]## / ##[[KeyPgScreenunlock Screenunlock]]## for an alternative method of doing this.
- Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Screenset""**##.
- ##[[KeyPgScreengraphics Screen (Graphics)]]##
- ##[[KeyPgScreenres Screenres]]##
- ##[[KeyPgScreencopy Screencopy]]##
- ##[[KeyPgScreenlock Screenlock]]##
- ##[[KeyPgScreenunlock Screenunlock]]##


Revision [19834]

Edited on 2016-01-16 11:30:12 by FxMwikki [Current position of the text cursor or the graphics cursor is common to all working pages]
Additions:
Note: The current cursor position is not handled independently for each video page. Therefore, when another working page is selected, the starting cursor position corresponds to the last cursor position on the previous working page (same behavior for the text cursor and the graphics cursor).
Deletions:
Note: The current cursor position is not handled independently for each video page. Therefore, when another working page is selected, the starting cursor position corresponds to the last cursor position on the previous working page.


Revision [19833]

Edited on 2016-01-16 06:34:11 by FxMwikki [Current cursor position is common to all working pages]
Additions:
Note: The current cursor position is not handled independently for each video page. Therefore, when another working page is selected, the starting cursor position corresponds to the last cursor position on the previous working page.


Revision [17546]

Edited on 2015-04-01 13:01:47 by DkLwikki [integer => long]
Additions:
[[KeyPgDeclare declare]] [[KeyPgSub sub]] **Screenset** ( [[KeyPgByval byval]] //work_page// [[KeyPgAs as]] [[KeyPgLong long]] = -1, [[KeyPgByval byval]] //visible_page// [[KeyPgAs as]] [[KeyPgLong long]] = -1 )
Deletions:
[[KeyPgDeclare declare]] [[KeyPgSub sub]] **Screenset** ( [[KeyPgByval byval]] //work_page// [[KeyPgAs as]] [[KeyPgInteger integer]] = -1, [[KeyPgByval byval]] //visible_page// [[KeyPgAs as]] [[KeyPgInteger integer]] = -1 )


Revision [17094]

Edited on 2014-06-18 06:32:26 by FxMwikki [Corrected slip]
Additions:
If you provide ##//visible_page//## but omit ##//work_page//##, only the visible page is changed. If you provide ##//work_page//## but omit ##//visible_page//##, only the work page is changed. If you omit both arguments, both work page and visible page are reset to page 0.
Deletions:
If you provide ##//visible_page//## but not ##//work_page//##, only the visible page is changed. If you omit ##//work_page//## but not ##//visible_page//##, only the work page is changed. If you omit both arguments, both work page and visible page are reset to page 0.


Revision [16732]

Edited on 2013-04-28 23:59:46 by CountingPine [Formatting]
Additions:
##**Screenset**## allows to set the current working page and the current visible page. Page numbers range from ##0## to ##//num_pages// - 1##, where ##//num_pages//## is the number of pages specified when setting the graphics mode with ##[[KeyPgScreenres Screenres]]## or ##[[KeyPgScreengraphics Screen]]##. You can use this function to achieve page-flipping or double-buffering.
Deletions:
##**Screenset**## allows to set the current working page and the current visible page. Page numbers range from ##0## to ##//num_pages//##-1, where ##//num_pages//## is the number of pages specified when setting the graphics mode with ##[[KeyPgScreenres Screenres]]## or ##[[KeyPgScreengraphics Screen]]##. You can use this function to achieve page-flipping or double-buffering.


Revision [16731]

Edited on 2013-04-28 23:55:53 by CountingPine [Clear up description a little]
Additions:
##**Screenset**## allows to set the current working page and the current visible page. Page numbers range from ##0## to ##//num_pages//##-1, where ##//num_pages//## is the number of pages specified when setting the graphics mode with ##[[KeyPgScreenres Screenres]]## or ##[[KeyPgScreengraphics Screen]]##. You can use this function to achieve page-flipping or double-buffering.
If you provide ##//visible_page//## but not ##//work_page//##, only the visible page is changed. If you omit ##//work_page//## but not ##//visible_page//##, only the work page is changed. If you omit both arguments, both work page and visible page are reset to page 0.
##**Screenset**## provides one method of writing to the screen without instantly displaying changes to the user. See also ##[[KeyPgScreenlock Screenlock]]## / ##[[KeyPgScreenunlock Screenunlock]]## for an alternative method of doing this.
Deletions:
##**Screenset**## allows to set the current working page and the current visible page. Page numbers range from 0 to the num_pages specified when setting the graphics mode minus 1 . You can use this function to achieve page-flipping or double-buffering. If you omit ##//work_page//## but not ##//visible_page//##, only visible page is changed. If you omit ##//visible_page//## but not ##//work_page//##, only work page is changed. If you omit both arguments, both work page and visible page are reset to page 0.


Revision [16730]

Edited on 2013-04-28 23:48:12 by CountingPine [Slightly more formal example, link to screen[un]lock]
Additions:
' Open graphics screen (320*200, 8bpp) with 2 pages
Screenres 320, 200, 8, 2
' Work on page 1 while displaying page 0
ScreenSet 1, 0
Dim As Integer x = -40
Do
'' Clear the screen, draw a box, update x
Cls
Line (x, 80)-step(39, 39), 4, BF
x += 1: If (x > 319) Then x = -40

' Wait for vertical sync: only used to control refresh rate, can be put anywhere in the Do loop

ScreenCopy

Loop While Inkey = ""
- ##[[KeyPgScreenlock Screenlock]]##
- ##[[KeyPgScreenunlock Screenunlock]]##
Deletions:
' Set good old 320x200 in 8bpp mode, but with 2 pages
SCREEN 13, ,2
COLOR ,15
DIM x AS INTEGER
x = -40
' Let's work on page 1 while we display page 0
SCREENSET 1, 0
DO
CLS
LINE (x, 80)-(x + 39, 119), 4, BF
x = x + 1
IF (x > 319) THEN x = -40
' Wait for vertical sync: only used as synchronous temporizing in that case (can be put anywhere in the Do Loop)
SCREENCOPY
LOOP WHILE INKEY = ""


Revision [15377]

Edited on 2011-10-06 07:18:41 by FxMwikki [In example, replace deprecated 'Wait &h3DA, 8' by 'ScreenSync' and complement comment]
Additions:
' Wait for vertical sync: only used as synchronous temporizing in that case (can be put anywhere in the Do Loop)
Deletions:
' Wait for vertical sync, only used as synchronous temporizing in that case (can be put anywhere in the Do Loop)


Revision [15376]

Edited on 2011-10-06 06:08:09 by FxMwikki [In example, replace deprecated 'Wait &h3DA, 8' by 'ScreenSync' and complement comment]
Additions:
' Wait for vertical sync, only used as synchronous temporizing in that case (can be put anywhere in the Do Loop)
ScreenSync
Deletions:
' Wait for vertical sync
WAIT &h3DA, 8


Revision [14443]

Edited on 2009-08-29 21:57:02 by CountingPine [Remove CamelCase links in "New to FreeBASIC"]
Additions:
- New to ""FreeBASIC""
Deletions:
- New to FreeBASIC


Revision [13172]

The oldest known version of this page was created on 2008-04-24 15:44:03 by JeffMarshall [Remove CamelCase links in "New to FreeBASIC"]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode