ITabCellStyle.PictureTooltip

Syntax

PictureTooltip: String;

Description

The PictureTooltip property determines the text of the tooltip for an image in a table cell.

Example

To execute the example a form, a button on this form named Button1, a component UiTabSheet named UiTabSheet1, the TabSheetBox and ImageList components are required. For the component ImageList named «ImageList1» an icon must be loaded.

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;

As a result for the selected table region the first image from the collection «ImageList1» will be set. When a mouse cursor pauses over this image, a tooltip with the text «Image» will be displayed.

See also:

ITabCellStyle