Promotic
Login logon

SetToolTip - method of the PmfObject object

Description:
Sets the tooltip text for the specified area of the Pmf object.
If the mouse cursor is placed over the specified area of the Pmf object and the quick help text for the specified area is not empty, then a tooltip window with the specified text will be displayed.
The window closes automatically when the mouse cursor moves outside the specified Pmf object area.
Syntax:
Empty SetToolTip(String sText, [Long nArea])
Parameters:
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.
12 - Button area for selecting the value of the Pmf object. This button is usually located to the right of the value input field (e.g. button for selecting color for PmfString - Subtype:Color).
Note:
This method is also functional in Web panels.
This method is functional only for JavaScript language.
This method is not functional for object: PmfLayout, PmfSepar.
See also:
Example:
JavaScriptSelect and copy to clipboard

var oBtn = oForm.CreateItem("button", "id_btn1");
oBtn.Value = "Save";
oBtn.SetToolTip("Saves text into the file", 11);

History:
Pm9.00.34: Created
PROMOTIC 9.0.34 SCADA system documentation MICROSYS, spol. s r.o.

Send page remark Contact responsible person
© MICROSYS, spol. s r.o.Update cookies preferences