edit canot display the caret

General TRichView support forum. Please post your questions here
Post Reply
maomi1997
Posts: 16
Joined: Mon Jul 19, 2010 3:26 am

edit canot display the caret

Post 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;
maomi1997
Posts: 16
Joined: Mon Jul 19, 2010 3:26 am

Post 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
maomi1997
Posts: 16
Joined: Mon Jul 19, 2010 3:26 am

Post by maomi1997 »

3. when input in cells ,the caret delay
Sergey Tkachenko
Site Admin
Posts: 17554
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

I am sorry, but TSRichViewEdit cannot display the caret for inserted TEdit or thirdparty editors.
Use TSRVEdit from SRVControls instead.
maomi1997
Posts: 16
Joined: Mon Jul 19, 2010 3:26 am

Post by maomi1997 »

thx your reply.
I hope that future version of srichviewedit can support devexpress conntrol.
proxy3d
ScaleRichView Developer
Posts: 307
Joined: Mon Aug 07, 2006 9:37 am

Post 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.
maomi1997
Posts: 16
Joined: Mon Jul 19, 2010 3:26 am

Post by maomi1997 »

is this need devexpress skin£¿
proxy3d
ScaleRichView Developer
Posts: 307
Joined: Mon Aug 07, 2006 9:37 am

Post by proxy3d »

Look examples with srvcontrols.
Sergey Tkachenko
Site Admin
Posts: 17554
Joined: Sat Aug 27, 2005 10:28 am
Contact:

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