|
TCustomRichViewEdit.SetCurrentHotspotInfo |
Top Previous Next |
|
Modifies the item at the position of caret, if this item is a hotspot. procedure SetCurrentHotspotInfo(const AName: String; AImageIndex, AHotImageIndex: Integer; AImageList: TCustomImageList; ATag: Integer); SetCurrentHotspotInfo(...) is equivalent to TopLevelEditor.SetHotspotInfoEd(TopLevelEditor.CurItemNo, ...). This method can be used if CurItemStyle returns rvsHotspot. Parameters: AName – name of hotspot, any string without line break (CR, LF) characters. It can also be set using SetCurrentItemText method. AImageList – not used, reserved, set it to nil.. AImageIndex – index of image in image list. AImageIndex – index of "hot" image in image list. This image is displayed under the mouse pointer (in TRichView, or in TRichViewEdit in hypertext mode), or when user moves the caret to this item (in TRichViewEdit). ATag – tag of the item.If tags are pointers to dynamically allocated strings (rvoTagsArePChars in Options), this parameter must be set to value returned by StrNew of StrAlloc functions, typecasted to integer. You can use value returned by GetCurrentHotspotInfo or GetCurrentTag for this item. The tag can also be set by SetCurrentTag method.
Method type: Additional item properties are assigned by the methods SetCurrentItemExtraIntProperty and SetCurrentItemExtraStrProperty.
See also methods: See also properties: See also:
|