<<

Contents

Search

>>

 

EDITOR_SET_STYLE

 

 

Function

 

 

Syntax:

EDITOR_SET_STYLE(<Mask Field>,<Style> [,<Handle>])

 

<Mask Field>

= <MASK FIELD>

<Style>

= <NUM-EXPRESSION>

<Handle>

= <NUM-EXPRESSION>

 

 

Meaning:

EDITOR_SET_STYLE sets the font style in a Word Processor for later text insertion with EDITOR_INSERT.

 

<Style> may contain any number of charatcers. The following characters are interpreted as font style. <Style> ist not case-sensitive.

 

Character

Font style

F

bold

B

bold

K

italic

I

italic

U

underlined

 

<Handle> specifies the window that contains the word processor field. <Handle> can contain the window depth or the handle of a split window or a WINDOWCALL window. If the parameter <Handle> is missing, the word processor field must be on the current mask.

 

EDITOR_SET_STYLE returns always 0.

 

Attention: This function has no effect with Html programs.

 

Parameter:

Mask Field

Word Processor field

Style

Font style

Handle

Window depth or handle of a split window or handle of a WINDOWCALL Window

 

Sample:

H% = EDITOR_SET_STYLE(#5.#EDIT$,"fk") /* Font style bold and italic

H% = EDITOR_INSERT(#5.#EDIT$,"Font is bold and italic")

IF H% <> 0

THEN ... Error ...

ENDIF

 

See also:

EDITOR_SET_COLOR

EDITOR_GET_CURSOR

EDITOR_GET_STYLEDTEXT$

EDITOR_GET_TEXT$

EDITOR_HAS_CHANGED

EDITOR_INSERT

EDITOR_LOAD_FILE

EDITOR_LOAD_STRING

EDITOR_SET_COLOR

EDITOR_SET_STYLE

EDITOR_RESET_CHANGED

GET_STYLEDTEXT_FROM_FILE$