Inserting control into TRichViewEdit

General TRichView support forum. Please post your questions here
Post Reply
Dmitry Kholl
Posts: 5
Joined: Thu Oct 26, 2006 8:28 am

Inserting control into TRichViewEdit

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17562
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Post Reply