|
TCustomRichViewEdit.SetCurrentControlInfo |
Top Previous Next |
|
Modifies the item at the position of caret, if this item is an inserted control. procedure SetCurrentControlInfo(const AName: String; AVAlign: TRVVAlign; ATag: Integer); SetCurrentControlInfo(...) is equivalent to TopLevelEditor.SetControlInfoEd(TopLevelEditor.CurItemNo, ...). This method can be used if CurItemStyle returns rvsComponent. Parameters: AName – name of the item, any string without line break (CR, LF) characters. It can also be set using SetCurrentItemText method. This is not a Name property of the control! AVAlign – vertical alignment of this item, see TRVVAlign for possible options. ATag – tag of the item. Do not confuse with Tag property of the control! 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 GetCurrentControlInfo 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:
|