Page 1 of 1

edit canot display the caret

Posted: Wed Sep 15, 2010 3:52 pm
by maomi1997
when i insert a Tedit into cells,but Tedit can not dispaly the caret?

Code: Select all

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;

Posted: Wed Sep 15, 2010 4:00 pm
by maomi1997
1.insert Tedit
cannot display caret,but can input
2,insert tcxtextedit
cannot display caret,but cannot input

why? how to resolve this problem.
thx

Posted: Wed Sep 15, 2010 4:03 pm
by maomi1997
3. when input in cells ,the caret delay

Posted: Wed Sep 15, 2010 5:33 pm
by Sergey Tkachenko
I am sorry, but TSRichViewEdit cannot display the caret for inserted TEdit or thirdparty editors.
Use TSRVEdit from SRVControls instead.

Posted: Wed Sep 15, 2010 10:00 pm
by maomi1997
thx your reply.
I hope that future version of srichviewedit can support devexpress conntrol.

Posted: Thu Sep 16, 2010 12:30 am
by proxy3d
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.

If you have any questions, please write.

Posted: Thu Sep 16, 2010 2:36 am
by maomi1997
is this need devexpress skin£¿

Posted: Thu Sep 16, 2010 9:04 am
by proxy3d
Look examples with srvcontrols.

Posted: Thu Sep 16, 2010 11:17 am
by Sergey Tkachenko
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.