Page 1 of 1

Inserting control into TRichViewEdit

Posted: Wed Feb 14, 2007 8:10 am
by Dmitry Kholl
I need use TComponent.Tag property in inserted into editor controls.

I set in Tag property my value.
var
cbx: TComboBox;
//...
cbx.Tag := -1;


Then I paste control into editor.
rvTemplateForm.InsertControl('',cbx, rvvaBaseline);

And control tag has another value.

Does trichview use the tag propery of inserted components?
Can I disable it?
I have to use the tag property at events of the component.

Posted: Wed Feb 14, 2007 3:19 pm
by Sergey Tkachenko
Yes, TRichView uses tags of inserted controls, and it cannot be turned off.

Suggestion: create a new component inherited from TComboBox with new published integer property, and use it instead.