PictureTooltip: String;
The PictureTooltip property determines a tooltip text for an image in a table cell.
Executing the example requires a form with the Button1 button located on it, the UiTabSheet component named UiTabSheet1, and the TabSheetBox and ImageList components. An icon should be loaded for the ImageList component named ImageList1.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Tab: ITabSheet;
Range: ITabRange;
Style: ITabCellStyle;
Begin
Tab := UiTabSheet1.TabSheet;
Tab.Images.AddFromImageList(Imagelist1);
Range := Tab.View.Selection.Range;
Style := Range.Style;
Style.EnablePictures := TriState.OnOption;
Style.NormalPicture := 0;
Style.PictureTooltip := "Image";
End Sub Button1OnClick;
After executing the example the first image from the ImageList1 collection will be set for the selected table cell area. When a mouse cursor hovers over this image, a tooltip with the Image text will be displayed.
See also: