JMP 14.2 联机文档
发现 JMP
使用 JMP
基本分析
基本绘图
刻画器指南
实验设计指南
拟合线性模型
预测和专业建模
多元方法
质量和过程方法
可靠性和生存方法
消费者研究
Scripting Guide
JSL Syntax Reference
该帮助的版本不再更新,请参见
https://www.jmp.com/support/help/zh-cn/15.2
获取最新的版本.
JSL Syntax Reference
•
JSL Messages
•
Display Boxes
• Text Boxes
上一个
•
下一个
Text Boxes
text box<<Font Color(n)
Sets the color for
Text
strings.
text box<<Get Hidden State
Returns the current state of a text box.
text box<<Get Text
Returns the string content of the box.
text box<<Get Tip
Returns the tooltip for the text box (or a text edit box).
text box<<Markup
Returns text formatted with the specified HTML tags. The HTML must be well-formed; make sure you close nested tags correctly.
The following example returns text formatted in bold, italic, and underlined.
w =
New Window
(
"Formatted Text"
,
Text Box
(
"This is <b>bold</b> text. This is <b><i>bold italic</i></b> text. This is <u>underlined</u> text."
,
<<
Markup
) );
text box<<Rotate Text("direction")
Rotates the text 90 degrees
"left"
or
"right"
, or returns it to the horizontal.
text box<<Set Font("name", <size>, <style | "style style...">, <angle>)
Sets the font name and properties for text strings. To specify more than one style, include a space between each style and place them in quotes.
text box<<Set Font Size(n)
Sets the font size in points for text strings.
text box<<Set Font Style("style" | "style style...")
Sets the font style for text strings. To specify more than one style, include a space between each style and place them in quotes. Integers are backwards compatible but not recommended for new scripts.
text box<<Set Script(script)
Associate a script with a text box. The script executes when the user presses Enter (or the text edit box otherwise loses focus).
text box<<Set Text("string")
Changes the string content of the box.
text box<<Set Tip("string")
Sets the tooltip for the text box (or a text edit box).
text box<<Set Wrap(n)
Set the wrap point, in pixels, in pixels (
n
).