Warning: Undefined array key "lid" in /db/www/plotdoc/local/config.php on line 56

Plot2 Documentation : Command - Qtext browse

Macro Command Reference


qtext <COOR> <x> <y> <text> [angle] [TEXTALIGN] [ALIGN] [COLOR]

Adds a text label to the document. This command uses the default color and the default font. The generated text label has the tag 999.
<COOR>: The coordinate system to which the rectangle belongs.
<x>, <y>: the position in screen coordinates of the text.
[angle]: The text angle.
[TEXTALIGN]: The text alignment (0=left, 1=center, 2=right).
[ALIGN]: The text box alignment.
[COLOR]: The text color as hexadecimal string.

ALIGN

A parameter wich defines the alignment of different objects, possible values:

topleft<BR>tl<BR>1topcenter<BR>tc<BR>2topright<BR>tr<BR>3
centerleft<BR>cl<BR>8center<BR>c<BR>0centerright<BR>cr<BR>4
bottomleft<BR>bl<BR>7bottomcenter<BR>bc<BR>6bottomright<BR>br<BR>5

TEXTALIGN

A parameter wich defines the alignment of text elements:

left<BR>l<BR>0center<BR>c<BR>1right<BR>r<BR>2

COOR

The coordinates system:

0, screenscreen coordinates
1, firstfirst axis (left and bottom)
2, secondsecond axis (right and top)

COLOR

This can be a hexadecimal color definition in the format RGB, ARGB, RRGGBB or AARRGGBB where R is red, G is green, B is blue and A is alpha.

There are also named colors which can be used: black, white, red, green, blue, orange, yellow, magenta, cyan, aluminum, aqua, asparagus, banana, blueberry, bubblegum, cantaloupe, carnation, cayenne, clover, eggplant, fern, flora, grape, honeydew, ice, iron, lavender, lead, lemon, licorice, lime, magnesium, maraschino, maroon, mercury, midnight, mocha, moss, nickel, ocean, orchid, plum, salmon, seafoam, silver, sky, snow, spindrift, spring, steel, strawberry, tangerine, teal, tin, tungsten, turquoise

The Plot default colors can be addressed with the numbers 0-15