Tooltip: String;
The Tooltip property determines the text of the tooltip, which appears when the mouse cursor is over the object.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Obj: ITabObject;
Size: IGxRectF;
Begin
Size := New GxRectF.Create(0, 0, 10, 10);
Obj := UiTabSheet1.TabSheet.Objects.Add("PrxPicture", Size);
(Obj As IPrxPicture).Image := GxImage.FromFile("c:\View.bmp");
Obj.Tooltip := "This is an image";
End Sub Button1OnClick;
As a result the image "c:\View.bmp" is created on the table sheet; when the mouse cursor is over this image, a tooltip with the text "This is an image" appears.
See also: