Revision history for KeyPgLocate


Revision [22007]

Last edited on 2017-11-21 01:11:24 by JeffMarshall [fix page link name case]
Additions:
//new_column// = [[KeyPgLoByte|lobyte]]( //result// )
Returns a 32 bit ##[[KeyPgLong|Long]]## containing the current cursor position and state. The [[KeyPgLoByte|low byte of the low word]] contains the column, the [[KeyPgHibyte|high byte of the low word]] contains the row, and the [[KeyPgHiword|high word]] contains the cursor state.
Deletions:
//new_column// = [[KeyPgLobyte|lobyte]]( //result// )
Returns a 32 bit ##[[KeyPgLong|Long]]## containing the current cursor position and state. The [[KeyPgLobyte|low byte of the low word]] contains the column, the [[KeyPgHibyte|high byte of the low word]] contains the row, and the [[KeyPgHiword|high word]] contains the cursor state.


Revision [21932]

Edited on 2017-10-06 06:43:41 by fxm [Added that the text cursor is never visible in graphics mode]
Additions:
the state of the cursor in console-mode only: ##0## is off, ##1## is on; text cursor is never visible in graphics mode.
Deletions:
the state of the cursor. ##0## is off, ##1## is on (console-mode only).


Revision [20299]

Edited on 2016-02-10 16:02:14 by DkLwikki [Update link format]
Additions:
[[KeyPgDeclare|declare]] [[KeyPgFunction|function]] **Locate**( //row// [[KeyPgAs|as]] [[KeyPgLong|long]] = 0, //column// [[KeyPgAs|as]] [[KeyPgLong|long]] = 0, //state// [[KeyPgAs|as]] [[KeyPgLong|long]] = -1, //start// [[KeyPgAs|as]] [[KeyPgLong|long]] = 0, //stop// [[KeyPgAs|as]] [[KeyPgLong|long]] = 0 ) [[KeyPgAs|as]] [[KeyPgLong|long]]
//new_column// = [[KeyPgLobyte|lobyte]]( //result// )
//new_row// = [[KeyPgHibyte|hibyte]]( //result// )
//new_state// = [[KeyPgHiword|hiword]]( //result// )
Ignored. Allowed for //[[CompilerOptlang|-lang qb]]// dialect compatibility only.
Ignored. Allowed for //[[CompilerOptlang|-lang qb]]// dialect compatibility only.
Returns a 32 bit ##[[KeyPgLong|Long]]## containing the current cursor position and state. The [[KeyPgLobyte|low byte of the low word]] contains the column, the [[KeyPgHibyte|high byte of the low word]] contains the row, and the [[KeyPgHiword|high word]] contains the cursor state.
- ##[[KeyPgCsrlin|Csrlin]]##
- ##[[KeyPgPos|Pos]]##
- ##[[KeyPgPrint|Print]]##
- ##[[KeyPgPrint|?]]##
Deletions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Locate**( //row// [[KeyPgAs as]] [[KeyPgLong long]] = 0, //column// [[KeyPgAs as]] [[KeyPgLong long]] = 0, //state// [[KeyPgAs as]] [[KeyPgLong long]] = -1, //start// [[KeyPgAs as]] [[KeyPgLong long]] = 0, //stop// [[KeyPgAs as]] [[KeyPgLong long]] = 0 ) [[KeyPgAs as]] [[KeyPgLong long]]
//new_column// = [[KeyPgLobyte lobyte]]( //result// )
//new_row// = [[KeyPgHibyte hibyte]]( //result// )
//new_state// = [[KeyPgHiword hiword]]( //result// )
Ignored. Allowed for //[[CompilerOptlang -lang qb]]// dialect compatibility only.
Ignored. Allowed for //[[CompilerOptlang -lang qb]]// dialect compatibility only.
Returns a 32 bit ##[[KeyPgLong Long]]## containing the current cursor position and state. The [[KeyPgLobyte low byte of the low word]] contains the column, the [[KeyPgHibyte high byte of the low word]] contains the row, and the [[KeyPgHiword high word]] contains the cursor state.
- ##[[KeyPgCsrlin Csrlin]]##
- ##[[KeyPgPos Pos]]##
- ##[[KeyPgPrint Print]]##
- ##[[KeyPgPrint ?]]##


Revision [17890]

Edited on 2016-01-08 14:33:47 by FxMwikki [Formatting for compatibility with wiki2]
Additions:
- ##[[KeyPgPrint Print]]##
- ##[[KeyPgPrint ?]]##
Deletions:
- ##[[KeyPgPrint (Print | ?)]]##


Revision [17868]

Edited on 2015-12-23 11:12:37 by FxMwikki ['?' is a shortcut for 'Print']
Additions:
- ##[[KeyPgPrint (Print | ?)]]##
Deletions:
- ##[[KeyPgPrint Print]]##


Revision [17407]

Edited on 2015-01-03 14:42:52 by DkLwikki [Returns & Takes Long]
Additions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Locate**( //row// [[KeyPgAs as]] [[KeyPgLong long]] = 0, //column// [[KeyPgAs as]] [[KeyPgLong long]] = 0, //state// [[KeyPgAs as]] [[KeyPgLong long]] = -1, //start// [[KeyPgAs as]] [[KeyPgLong long]] = 0, //stop// [[KeyPgAs as]] [[KeyPgLong long]] = 0 ) [[KeyPgAs as]] [[KeyPgLong long]]
Returns a 32 bit ##[[KeyPgLong Long]]## containing the current cursor position and state. The [[KeyPgLobyte low byte of the low word]] contains the column, the [[KeyPgHibyte high byte of the low word]] contains the row, and the [[KeyPgHiword high word]] contains the cursor state.
Deletions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Locate**( //row// [[KeyPgAs as]] [[KeyPgInteger integer]] = 0, //column// [[KeyPgAs as]] [[KeyPgInteger integer]] = 0, //state// [[KeyPgAs as]] [[KeyPgInteger integer]] = -1, //start// [[KeyPgAs as]] [[KeyPgInteger integer]] = 0, //stop// [[KeyPgAs as]] [[KeyPgInteger integer]] = 0 ) [[KeyPgAs as]] [[KeyPgInteger integer]]
Returns a 32 bit ##[[KeyPgInteger Integer]]## containing the current cursor position and state. The [[KeyPgLobyte low byte of the low word]] contains the column, the [[KeyPgHibyte high byte of the low word]] contains the row, and the [[KeyPgHiword high word]] contains the cursor state.


Revision [17294]

Edited on 2014-09-26 21:37:37 by DkLwikki [Clarify return value description]
Additions:
Returns a 32 bit ##[[KeyPgInteger Integer]]## containing the current cursor position and state. The [[KeyPgLobyte low byte of the low word]] contains the column, the [[KeyPgHibyte high byte of the low word]] contains the row, and the [[KeyPgHiword high word]] contains the cursor state.
If any of the //row//, //column// or //state// parameters were just set by the call to **Locate**, then the return value will reflect these new values, not the previous ones. If any of the parameters were omitted in the call to **Locate**, then the return value will reflect the current values, which are the same as before the call to **Locate**.
Deletions:
Returns a 32 bit ##[[KeyPgInteger Integer]]## containing the new cursor position and state. The [[KeyPgLobyte low byte of the low word]] contains the new column, the [[KeyPgHibyte high byte of the low word]] contains the new row, and the [[KeyPgHiword high word]] contains the new cursor state.


Revision [16139]

Edited on 2012-02-24 20:59:06 by DkLwikki [Explain locate() return value]
Additions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Locate**( //row// [[KeyPgAs as]] [[KeyPgInteger integer]] = 0, //column// [[KeyPgAs as]] [[KeyPgInteger integer]] = 0, //state// [[KeyPgAs as]] [[KeyPgInteger integer]] = -1, //start// [[KeyPgAs as]] [[KeyPgInteger integer]] = 0, //stop// [[KeyPgAs as]] [[KeyPgInteger integer]] = 0 ) [[KeyPgAs as]] [[KeyPgInteger integer]]
**Locate** [//row//], [//column//], [//state//]
//result// = **Locate**( [//row//], [//column//], [//state//] )
//new_column// = [[KeyPgLobyte lobyte]]( //result// )
//new_row// = [[KeyPgHibyte hibyte]]( //result// )
//new_state// = [[KeyPgHiword hiword]]( //result// )
##//state//##
{{fbdoc item="ret"}}
Returns a 32 bit ##[[KeyPgInteger Integer]]## containing the new cursor position and state. The [[KeyPgLobyte low byte of the low word]] contains the new column, the [[KeyPgHibyte high byte of the low word]] contains the new row, and the [[KeyPgHiword high word]] contains the new cursor state.
Deletions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Locate**( //row// [[KeyPgAs as]] [[KeyPgInteger integer]] = 0, //column// [[KeyPgAs as]] [[KeyPgInteger integer]] = 0, //cursorstate// [[KeyPgAs as]] [[KeyPgInteger integer]] = -1, //start// [[KeyPgAs as]] [[KeyPgInteger integer]] = 0, //stop// [[KeyPgAs as]] [[KeyPgInteger integer]] = 0 ) [[KeyPgAs as]] [[KeyPgInteger integer]]
**Locate** [//row//], [//column//], [//cursorstate//]
//result// = **Locate**( [//row//], [//column//], [//cursorstate//] )
##//cursorstate//##


Revision [16138]

Edited on 2012-02-24 19:30:43 by DkLwikki [Update Locate syntax (it's actually a proper function)]
Additions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Locate**( //row// [[KeyPgAs as]] [[KeyPgInteger integer]] = 0, //column// [[KeyPgAs as]] [[KeyPgInteger integer]] = 0, //cursorstate// [[KeyPgAs as]] [[KeyPgInteger integer]] = -1, //start// [[KeyPgAs as]] [[KeyPgInteger integer]] = 0, //stop// [[KeyPgAs as]] [[KeyPgInteger integer]] = 0 ) [[KeyPgAs as]] [[KeyPgInteger integer]]
**Locate** [//row//], [//column//], [//cursorstate//]
//result// = **Locate**( [//row//], [//column//], [//cursorstate//] )
Deletions:
**Locate** [//row// [[KeyPgAs as]] [[KeyPgInteger integer]] ][, [//column// [[KeyPgAs as]] [[KeyPgInteger integer]] ][, [//cursorstate// [[KeyPgAs as]] [[KeyPgInteger integer]] ]][, [//start// [[KeyPgAs as]] [[KeyPgInteger integer]] ][, [//stop// [[KeyPgAs as]] [[KeyPgInteger integer]] ]
**Locate** [//row//][, [//column//][, [//cursorstate//]]


Revision [15281]

Edited on 2011-09-30 18:42:30 by DkLwikki [Add locate+getmouse example]
Additions:
{{fbdoc item="filename" value="examples/manual/console/locate.bas"}}%%(freebasic)

{{fbdoc item="filename" value="examples/manual/console/locate-getmouse.bas"}}%%(freebasic)
'' Text cursor + mouse tracking
dim as integer x = 0, y = 0, dx, dy
cls
locate , , 1
while inkey <> chr(27)
getmouse dx, dy
if( dx <> x or dy <> y ) then
locate y+1, x+1: print " ";
x = dx
y = dy
locate 1, 1: print x, y, ""
locate y+1, x+1: print "X";
end if
wend
Deletions:
{{fbdoc item="filename" value="examples/manual/console/locate.bas"}}%%(freebasic)


Revision [14532]

Edited on 2009-11-23 01:09:07 by CountingPine [Formatting]
Additions:
the state of the cursor. ##0## is off, ##1## is on (console-mode only).
- The ##//start//## and ##//stop//## arguments have no effect in ""FreeBASIC"".
Deletions:
the state of the cursor. 0 is off, 1 is on (console-mode only).
- The ##//start//## and ##//stop//## arguments have no effect in FreeBASIC.


Revision [12345]

The oldest known version of this page was created on 2008-01-18 14:16:31 by JeffMarshall [Formatting]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode