Remote-processing RPC-2350 Bedienungsanleitung Seite 65

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 83
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 64
GRAPHIC DISPLAY PORT CHAPTER 15
15-4
largest font is 32 pixels wide by 48 tall.
Small characters are pr inted on its own plane. Thus,
small text can be turned off if desired. The larger sizes
are considered graphics and are printed on the graphics
plane.
Printing small characters is much like printing to a
terminal. U nless there is a semi-colon (;) at the end of a
PRIN T or D ISPLAY statement, the cursor advances to
the beginning of the next line simulating a
< CR> < LF> sequence.
Text is printed using a number of CAM BASIC
commands. Some of them are listed below.
PRIN T #10, ”T ext”
PRINT #10,USING “##.####”;A
DISPLAY “T ext”
DISPLAY (Row, Colum n); ” Text”
DISPLAY L (Row , C olumn); ”T ext”;
DISPLAY M (Row, Colum n);” Text” ;
DISPLAY M, R(Row, Column);"Text";
PRINT #10 can write formatted number s and text in the
same way as PRINT. PRINT uses small text. Larger
characters must use DISPLAY. PRINT USING is not
available for larger chara cters.
Medium and large char acters are form ed in CAM BASIC
and are treated as graphics . P rinting these characters is
much the same as sm all ones. The m ajor differ ence is
CAM BASIC does not re-position text on the next line if
you run out of room on the current line.
Positioning text
Small character text is positioned using the DISPLAY
command. Text begins in the upper left corner at (0,0).
The lower right corner is (29,39). Text is auto-
incremented to the next position. When small text is at
the end of the line, it is positioned at the next line. An
entire screen of small text will scroll up one line when
the bottom line is printed followed by a < LF>
character.
Medium sized characters are positioned based on
graphical X and Y pixel position. When printing a
string, characters automatically advance to the right by
10 pixels.
The X, Y coordinates in the DISPLA Y command for
medium characters specify the upper right corner of the
character block. Thus, a D ISPLAY M(2,3) command
starts printing the char acter on the 3rd pixe l to the right,
and 4th pixel down from the top (coordinates start at
0,0).
The largest character is positioned based on pixel and
small character resolution. T he X position starts on the
column based on the small character set. Its range is 0-
34. The Y position sets the top of the chara cter. Its
range is 0 to 192. Thus, you have 19 2 vertical p oints
and 35 horizontal points to position a large character.
Medium and large char acters are drawn as gr aphics.
This means they app ear on the graphics layer. The fonts
for these characters are stored in Flash EPROM , U3. If
this EPROM is missing or W11 is removed, the larger
characters will display garbage. Fonts can be modified
as desired. See "C hanging and loading fonts" later in this
chapter.
Printing normal and reverse characters
Medium and large characters may be printed in normal
(white on black backgr ound) and r everse (black on w hite
background). This is done by specifying the "R"
parameter in the DISPLAY com mand.
DISPLAY M,R(0,0)"REVERSE";
DISPLAY M(0,16)"NORMAL";
The semi-colon (;)
You may (or may not) notice a semi-colon (;) after
some, but not all DISPLAY and PRINT #10 statements.
A (;) suppresses a < CR> < LF> sequence to the
display (and serial ports). A comma (,) works in a
similar fashion except a number of spaces are printed
while it tabs to the next location..
The display driver was designed so when printing sm all
characters, the screen acted like a terminal display.
Thus, a < CR> < LF> sequence simply moved the
cursor down one line.
Medium and large char acters do not operate this way. A
< CR> or < LF> are simply tr eated as spaces. Unless
you include a ";" at the end of a DISPLAY M or
DISPLAY L type line, you will effectively print two
more blocks of character s. T his is especially notic eable
in the reverse display mode.
Scrolling
Small text automatically scrolls up 1 line when it reaches
the bottom of the screen. Thus, the display acts like a
terminal.
Seitenansicht 64
1 2 ... 60 61 62 63 64 65 66 67 68 69 70 ... 82 83

Kommentare zu diesen Handbüchern

Keine Kommentare