07.05.2015 Views

Download - True BASIC

Download - True BASIC

Download - True BASIC

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Object Subroutine<br />

WRAP<br />

MARGIN<br />

READONLY<br />

CHAR LIMIT<br />

333<br />

If values(1)=1, the text is to be wrapped at the margin, which is in pixels. The wrapping<br />

point of the text need not take place at the right edge of the text edit control. If values(1)=0<br />

(default), the text will not be wrapped, and the value of the margin attribute<br />

will be ignored.<br />

Values(1)= the size of the margin, in pixels, to be used with the text edit control. If<br />

there is no WRAPing, the margin is ignored. The default value is 0 for both cases.<br />

Values(1)=1 if the text edit control is (to be) read only; otherwise, values(1)=0<br />

(default).<br />

Values(1) contains the maximum number of characters allowed in one paragraph. The<br />

programmer can use this attribute to limit the amount of text a user can enter. The<br />

default value is 65535 characters.<br />

Text Editor Contents Attributes<br />

FORE COLOR Values(1) gives the color to be used for the foreground (text) in the text edit control.<br />

The default foreground color is black.<br />

BACK COLOR Values(1) gives the color to be used for the background in the text edit control. The<br />

default background color is white.<br />

BORDER COLOR Values(1) gives the color to be used for the border of the text edit control. The default<br />

border color is black.<br />

FONT NAME Values$ contains the name of the font to be used, or currently in use. The available fonts<br />

will vary with the operating system. However, certain common fonts can be found on all<br />

systems; they are:<br />

HELVETICA FIXED TIMES SYSTEM<br />

The FIXED font is a mono-spaced font similar to the Courier or Monaco type faces. The<br />

SYSTEM font is Helvetica on some systems. The default font is HELVETICA.<br />

FONT STYLE Values$ contains the style of the font to be used, or currently in use. The available styles<br />

are:<br />

PLAIN BOLD ITALIC BOLD ITALIC<br />

On many systems, the name of the font and its style may be combined into the font name.<br />

For example, one might specify “Times Roman Italic” as the font name instead of having<br />

to specify “Times Roman” as the font name and “Italic” as the font style. The default style<br />

is PLAIN.<br />

FONT SIZE Values(1) contains the size of the font, in points, to be used or currently in use. The<br />

default font size is ten (points).<br />

FONT METRICS Usable only with the GET method, values(1) through values(6) return the following properties<br />

on the font in use; the units are in pixels (not points):<br />

values(1)<br />

leading<br />

values(2)<br />

ascent<br />

values(3)<br />

descent<br />

values(4)<br />

horizontal size<br />

values(5)<br />

vertical size<br />

values(6)<br />

bearing<br />

The leading is the space between lines in the font. The ascent is the distance in pixels of<br />

the top of the highest character above the base line. The descent is the distance in pixels<br />

of the lowest descender before the base line. The horizontal size is the size of the “M” for

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!