Function EN Version 2.10

@RTAddButton

RichText

Syntax

@RTAddButton(TEXT1;STYLE2;WRAP3;CNFORMULA4;RT5);

Description

Appends a button labeled TEXT TEXT1 and containing the CNFORMULA CNFORMULA4 to the RichText field RT RT5.

FNLIST STYLE2:
1.   StyleDefinitionNumber
2.   Font
3.   Size
4.   options
5.   Color

1. StyleDefinitionNumber:
Reserved

2. Font:
0   Times Roman
1   Helvetica
4   Courier

3. Size:
0-255

4. options (add to combine):
0   Normal
1   Bold
2   Italic
4   Underlined
8   Strikethrough
16   Superscript
32   Subscript

5. Color:
0   Black   
1   White
2   Red
3   Light green
4   Blue
5   Magenta
6   Yellow
7   Cyan
8   Brown
9   Dark green
10   Dark blue
11   Violet
12   Khaki
13   Dark cyan
14   Gray

FN WRAP3:
1. Maximum button text length (TEXT1) in cm; text is wrapped after this length.

CNFORMULA CNFORMULA4:
A compiled Notes formula; see @CompileFormula.
If an empty formula ("") is passed as CNFORMULA, a button is inserted that is only visually present and cannot be activated.

Example @RTAddButton(TEXT1;STYLE2;WRAP3;CNFORMULA4;RT5):

RT5:=@RTInit;
TEXT1:="Button name";
STYLE2:=0:1:10:1:10;
WRAP3:=5.080;
CNFORMULA4:=@CompileFormula("@Prompt([OK];\"Button pressed by:\";@Username)");
RT5:=@RTAddButton(TEXT1;STYLE2;WRAP3;CNFORMULA4;RT5);

The Button is appended at the end of RT5.

Note : This text was machine-translated and may contain inaccuracies.