Revision history for KeyPgScreenlist


Revision [22014]

Last edited on 2017-11-21 01:11:44 by JeffMarshall [fix page link name case]
Additions:
The result of ##[[KeyPgScreenlist|Screenlist]]## is encoded as a 32 bit value, with the screen width as the [[KeyPgHiword|high word]] and the height as the [[KeyPgLoWord|low word]].
Deletions:
The result of ##[[KeyPgScreenlist|Screenlist]]## is encoded as a 32 bit value, with the screen width as the [[KeyPgHiword|high word]] and the height as the [[KeyPgLoword|low word]].


Revision [21124]

Edited on 2016-03-13 10:23:39 by fxm [Formatting]
Additions:




Revision [20506]

Edited on 2016-02-10 16:08:16 by DkLwikki [Update link format]
Additions:
[[KeyPgDeclare|declare]] [[KeyPgFunction|function]] **Screenlist** ( [[KeyPgByval|byval]] //depth// [[KeyPgAs|as]] [[KeyPgLong|long]] = 0 ) [[KeyPgAs|as]] [[KeyPgLong|long]]
It works like the ##[[KeyPgDir|Dir]]## function: the first call to the function requires the ##//depth//## parameter to be specified, it returns the lowest supported resolution for the requested depth. Further calls to ##**Screenlist**## without arguments returns the next resolutions. When no more resolutions are available, ##[[KeyPgScreenlist|Screenlist]]## returns ##0##.
The result of ##[[KeyPgScreenlist|Screenlist]]## is encoded as a 32 bit value, with the screen width as the [[KeyPgHiword|high word]] and the height as the [[KeyPgLoword|low word]].
- Not available in the //[[CompilerOptlang|-lang qb]]// dialect unless referenced with the alias ##**""__Screenlist""**##.
- ##[[KeyPgScreengraphics|Screen]]##
- ##[[KeyPgScreenres|Screenres]]##
Deletions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Screenlist** ( [[KeyPgByval byval]] //depth// [[KeyPgAs as]] [[KeyPgLong long]] = 0 ) [[KeyPgAs as]] [[KeyPgLong long]]
It works like the ##[[KeyPgDir Dir]]## function: the first call to the function requires the ##//depth//## parameter to be specified, it returns the lowest supported resolution for the requested depth. Further calls to ##**Screenlist**## without arguments returns the next resolutions. When no more resolutions are available, ##[[KeyPgScreenlist Screenlist]]## returns ##0##.
The result of ##[[KeyPgScreenlist Screenlist]]## is encoded as a 32 bit value, with the screen width as the [[KeyPgHiword high word]] and the height as the [[KeyPgLoword low word]].
- Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Screenlist""**##.
- ##[[KeyPgScreengraphics Screen]]##
- ##[[KeyPgScreenres Screenres]]##


Revision [17544]

Edited on 2015-04-01 13:00:10 by DkLwikki [integer => long]
Additions:
The result of ##[[KeyPgScreenlist Screenlist]]## is encoded as a 32 bit value, with the screen width as the [[KeyPgHiword high word]] and the height as the [[KeyPgLoword low word]].
Deletions:
The result of ##[[KeyPgScreenlist Screenlist]]## is encoded in an ##[[KeyPgInteger Integer]]## with the screen width as the [[KeyPgHiword high word]] and the height as the [[KeyPgLoword low word]].


Revision [17543]

Edited on 2015-04-01 12:59:39 by DkLwikki [integer => long]
Additions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Screenlist** ( [[KeyPgByval byval]] //depth// [[KeyPgAs as]] [[KeyPgLong long]] = 0 ) [[KeyPgAs as]] [[KeyPgLong long]]
Deletions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Screenlist** ( [[KeyPgByval byval]] //depth// [[KeyPgAs as]] [[KeyPgInteger integer]] = 0 ) [[KeyPgAs as]] [[KeyPgInteger integer]]


Revision [16276]

Edited on 2012-08-15 15:13:51 by CountingPine [Formatting, minor example changes]
Additions:
the color depth for which the list of modes is requested (supported depths are ##8##, ##15##, ##16##, ##24## and ##32##)
returns ##0##, when there are no more resolutions to read.
It works like the ##[[KeyPgDir Dir]]## function: the first call to the function requires the ##//depth//## parameter to be specified, it returns the lowest supported resolution for the requested depth. Further calls to ##**Screenlist**## without arguments returns the next resolutions. When no more resolutions are available, ##[[KeyPgScreenlist Screenlist]]## returns ##0##.
The result of ##[[KeyPgScreenlist Screenlist]]## is encoded in an ##[[KeyPgInteger Integer]]## with the screen width as the [[KeyPgHiword high word]] and the height as the [[KeyPgLoword low word]].
Print "Resolutions supported at 8 bits per pixel:"
While (mode <> 0)
Print w & "x" & h
mode = ScreenList()
Deletions:
the color depth for which the list of modes is requested (supported depths are 8, 15, 16, 24 and 32)
returns 0, when there are no more resolutions to read.
It works like the ##[[KeyPgDir Dir]]## function: the first call to the function requires the ##//depth//## parameter to be specified, it returns the lowest supported resolution for the requested depth. Further calls to ##**Screenlist**## without arguments returns the next resolutions. When no more resolutions are available, ##[[KeyPgScreenlist Screenlist]]## returns 0.
The result of ##[[KeyPgScreenlist Screenlist]]## is encoded in an integer with the screen width as the high word and height and the height as the low word respectively.
'' Find which 8bit resolutions are supported
While (mode)
Print Str(w) + "x" + Str(h)
mode = ScreenList


Revision [15026]

Edited on 2010-12-31 08:42:31 by OzWikki [Some of the text referred to Screenres instead of Screenlist]
Additions:
It works like the ##[[KeyPgDir Dir]]## function: the first call to the function requires the ##//depth//## parameter to be specified, it returns the lowest supported resolution for the requested depth. Further calls to ##**Screenlist**## without arguments returns the next resolutions. When no more resolutions are available, ##[[KeyPgScreenlist Screenlist]]## returns 0.
The result of ##[[KeyPgScreenlist Screenlist]]## is encoded in an integer with the screen width as the high word and height and the height as the low word respectively.
Deletions:
It works like the ##[[KeyPgDir Dir]]## function: the first call to the function requires the ##//depth//## parameter to be specified, it returns the lowest supported resolution for the requested depth. Further calls to ##**Screenlist**## without arguments returns the next resolutions. When no more resolutions are available, ##[[KeyPgScreenres Screenres]]## returns 0.
The result of ##[[KeyPgScreenres Screenres]]## is encoded in an integer with the screen width as the high word and height and the height as the low word respectively.


Revision [14440]

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


Revision [13169]

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



sf.net phatcode