procedure TForm2.btn1Click(Sender: TObject);
var i:Integer;
begin
srvedit1.RichViewEdit.Clear;
if dlgOpen1.Execute then
begin
srvedit1.RichViewEdit.LoadRTF(dlgOpen1.FileName) ;
end;
srvedit1.RichViewEdit.Format;
for i := 0 to srvedit1.RichViewEdit.RVData.ItemCount - 1 do
begin
if srvedit1.RichViewEdit.GetItemStyle(i) = rvsTable then
begin
tab:=TRVTableItemInfo(srvedit1.RichViewEdit.RVData.GetItem(i));
//break;
end;
end;
tab.OnCellEditing:=onCellEditing;
//tab.Cells[0,1].AddControlEx('default1',edt2,-1,rvvaAbsMiddle);
tab.Cells[2,1].AddControlEx('default2',edt1,-1,rvvaAbsMiddle);
srvedit1.RichViewEdit.Format;
end;
Sorry, no. SRVEdit was created to solve this problem.
In SRV does not work Edit, to use SRVEdit.
Media Player - SRVMediaPlayer.
Combobox - SRVCombobox,
Listbox - SRVListbox,
Button - SVRButton etc.
If you want to make the components in the style devexpress, then you need to use SRVSkinManager. With SRVSkinManager can create an image SRVControl component in any style.
Supporting thirdparty controls would be too difficult.
Well, for example, ExpressQuantumGrid cannot use TEdit or other thirdparty controls as inplace editors. It requires TcxTextEdit that was specially designed to work this this grid.
Similarly, TSRichViewEdit requires TSRVEdit that was specially designed to work in our editor. We try to support other controls as much as possible, but for text editing control, only our native editor can be used smoothly.
TSRVEdit supports skins using our skin engine, so it may look as you wish, but you need to create a proper skin (by creating a set of bitmaps)
In future, we will try to support DevExpress skins in our components, but I cannot tell you when it will be implemented.