CmdText

From MCS Wiki AVR
Revision as of 20:18, 12 December 2014 by Admin (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Action

Draw Text.

 

 

Syntax

CmdText x, y, font, options, string

 

 

Remarks

x

x-coordinate of text base, in pixels

y

y-coordinate of text base, in pixels

font

Internal Fonts 16-31, User Defined Fonts 0-14

options

By default (x,y) is the top-left pixel of the text (options = 0).

OPT_CENTERX centers the text horizontally

OPT_CENTERY centers it vertically

OPT_CENTER centers the text in both directions

OPT_RIGHTX right-justifies the text, so that the x is the rightmost pixel.

string

text to display

 

 

Example

Personal tools
Namespaces
Variants
Actions
Navigation
Language