Amos Professional Manual  Contents  Index

Text


HOME
instruction: force text cursor home
Home

Whenever you need to move the text cursor back to the top left-hand corner of the screen in a hurry, simply tell it to go HOME and it will automatically be relocated to coordinates 0,0 like this:

E> Cls: Locate 10,10: Print "I am going"
   Wait 100: Home : Print "Home!"

CMOVE
instruction: move text cursor
Cmove width
Cmove height
Cmove width,height

It is also possible to move the text cursor a pre-set distance away from its current position, which can come in useful if you need to show speech bubbles or shunt your text to one side temporarily. The CMOVE command is followed by a pair of variables that represent the width and height of the required offset, and these values are added to the current cursor coordinates. Like LOCATE, either of the coordinates can be omitted, as long as the comma is positioned correctly. An additional technique is to use negative values as well as positive offsets. For example:

E> Cls : Print "Iceland"
   Cmove 5,5: Print "Scotland";
   Cmove ,-3 : Print "Norway"
   Cmove 10,14: Print "France"

CMOVE$
function: return control string to move text cursor
a$=Cmove$(x,y)

Characters can be printed relative to the current cursor position by setting up a string using the CMOVE$ function. The following example prints a string at coordinates 10,10 from the current text cursor:

E> A$=Cmove$(10,10)
   A$=A$+"AMOS Professional"
   Print A$

AT
function: return a string to position the text cursor
a$=At(x,y)

Back    Next
05.06.06