| sText | (String) Text to be displayed in the tooltip window. The text can be multi-line. |
|---|---|
| nArea | [optional] (Long) The number of the Pmf object area. For each Pmf object area, you can enter different tooltip text.
0 (default) - The entire Pmf object area. If the tooltip text is entered for both the entire Pmf object area and for one of its sub-areas (e.g. the title area), then the text entered for the sub-area takes precedence (i.e. when the mouse cursor is hovered over the title area, the text for the title area is displayed, but elsewhere the text for the area of the entire Pmf object is displayed).
2 - The title area of the Pmf object.
11 - The area for entering the value of the Pmf object. This is the area for entering text, numbers, checkboxes, but also the area for buttons, tables, or trees.
|
var oBtn = oForm.CreateItem("button", "id_btn1");
oBtn.Value = "Save";
oBtn.SetToolTip("Saves text into the file", 11);