This wiki is out of date, use the continuation of this wiki instead

Text

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 23:49, 27 June 2007 (edit)
Sandman (Talk | contribs)

← Previous diff
Revision as of 09:02, 7 August 2007 (edit) (undo)
Sandman (Talk | contribs)

Next diff →
Line 1: Line 1:
-#REDIRECT [[TextID]]+== Definition ==
 +A text is a text written on screen with [[texts|texts functions]], like [[write]]() or [[write_int]](). A text is addressed using the associated [[TextID]].
 + 
 +There are two kinds of texts:
 +* Static text is any text written with [[write]](); it is static, because the content of the text cannot be changed after writing, but the text can be moved and deleted.
 +* Dynamic text is any text written with write_xxx() functions; it is dynamic because the content of the text always reflects the current value of the variable specified. Of course moving and deleting is also possible.
 + 
 +== Example ==
 +<pre>
 +Program f;
 +Begin
 + 
 + write(0,1,1,0,"FPS:");
 + write_int(0,31,1,0,&fps);
 + 
 + Repeat
 + frame;
 + Until(key(_esc))
 + 
 +End
 +</pre>
 +Used in example: [[write]](), [[write_int]](), [[fps]]
 +== See also ==
 +* [[z]]
 +* [[TextID]]

Revision as of 09:02, 7 August 2007

Definition

A text is a text written on screen with texts functions, like write() or write_int(). A text is addressed using the associated TextID.

There are two kinds of texts:

  • Static text is any text written with write(); it is static, because the content of the text cannot be changed after writing, but the text can be moved and deleted.
  • Dynamic text is any text written with write_xxx() functions; it is dynamic because the content of the text always reflects the current value of the variable specified. Of course moving and deleting is also possible.

Example

Program f;
Begin

    write(0,1,1,0,"FPS:");
    write_int(0,31,1,0,&fps);

    Repeat
        frame;
    Until(key(_esc))

End

Used in example: write(), write_int(), fps

See also

Personal tools