Search found 27 matches

by srvsxf
Wed Sep 29, 2010 12:47 am
Forum: ScaleRichView
Topic: How the Cursor move in the Tags of TSrichViewEdit ?
Replies: 36
Views: 125249

Use this function: function GetFieldValueFromRVData(RVData: TCustomRVData; const FieldName: String): String; var i,r,c: Integer; table: TRVTableItemInfo; begin Result := ''; for i := 0 to RVData.ItemCount-1 do if (RVData.GetItemStyle(i)>=0) and (StrComp(PChar(RVData.GetItemTag(i)), PChar(FieldName)...
by srvsxf
Tue Sep 28, 2010 12:45 am
Forum: ScaleRichView
Topic: How the Cursor move in the Tags of TSrichViewEdit ?
Replies: 36
Views: 125249

Now, about line breaks in fields. One item cannot contain a line break inside. Because of this, your line Cells[1,7].AddNLTag('xxxx'+#13+'oooooopo',6,0,Integer(StrNew('eName5'))); is incorrect, you need using 2 calls of AddNLTag to add 2 lines. And when you get values, you can enumerate all items h...
by srvsxf
Tue Sep 28, 2010 12:43 am
Forum: ScaleRichView
Topic: How the Cursor move in the Tags of TSrichViewEdit ?
Replies: 36
Views: 125249

Sergey Tkachenko wrote:You can change VK_RETURN to VK_RIGHT.
You can implement similar code with VK_LEFT and PriorCurItem instead of NextCurItem.
Thank you for your help!

I test my program as your said yesterday. But It can't success because of some my mistake.

Today,I test again. It's ok!
Thanks.
by srvsxf
Mon Sep 27, 2010 8:55 am
Forum: ScaleRichView
Topic: How the Cursor move in the Tags of TSrichViewEdit ?
Replies: 36
Views: 125249

TSRichViewEdit has the method NextCurItem allowing to select the next item having one of the specified StyleNo. In your case, StyleNo=6. Enter is processed in OnKeyDown event. Unfortunately, it is forbidden to move from cell to cell in OnKeyDown, so we need using PostMessage to call NextCurItem. 1)...
by srvsxf
Mon Sep 27, 2010 8:33 am
Forum: ScaleRichView
Topic: How the Cursor move in the Tags of TSrichViewEdit ?
Replies: 36
Views: 125249

Now, about line breaks in fields. One item cannot contain a line break inside. Because of this, your line Cells[1,7].AddNLTag('xxxx'+#13+'oooooopo',6,0,Integer(StrNew('eName5'))); is incorrect, you need using 2 calls of AddNLTag to add 2 lines. And when you get values, you can enumerate all items h...
by srvsxf
Fri Sep 24, 2010 3:39 am
Forum: ScaleRichView
Topic: How the Cursor move in the Tags of TSrichViewEdit ?
Replies: 36
Views: 125249

I want to move the Cursor in the gray background. The best,the user use "->" not use "enter" key.because "Enter" key use to newline. But I find an other problem.If I don't press "enter" key,I input the word "111" in the tag,I can get the word "1...
by srvsxf
Fri Sep 24, 2010 3:27 am
Forum: ScaleRichView
Topic: How delete the cursor of the table cells before the tag!
Replies: 4
Views: 21647

Sergey Tkachenko.Thank you very much!

My this problem has solved.

Thanks a lot.
by srvsxf
Fri Sep 24, 2010 2:55 am
Forum: ScaleRichView
Topic: How the Cursor move in the Tags of TSrichViewEdit ?
Replies: 36
Views: 125249

Cursor Move

Sergey Tkachenko wrote:Do you want it to move to the NEXT text with gray background?
Like MS Excel moves to the next cell when user presses Enter?
OK! Just it I want.
by srvsxf
Thu Sep 23, 2010 2:06 am
Forum: ScaleRichView
Topic: How the Cursor move in the Tags of TSrichViewEdit ?
Replies: 36
Views: 125249

Cusor Move

1) How do you want to use tags? 2) Where do you want to move the caret when the user pressed Enter? Sorry! I don't describe it carefully. My sourcecode is as below. //-------(( procedure TForm1.FormCreate(Sender: TObject); var r,c: Integer; begin table1 := TRVTableItemInfo.CreateEx(2,14, srv.RichVi...
by srvsxf
Thu Sep 23, 2010 1:55 am
Forum: ScaleRichView
Topic: How delete the cursor of the table cells before the tag!
Replies: 4
Views: 21647

my sourcecode is as below: //----------------(( procedure TForm1.FormCreate(Sender: TObject); var r,c: Integer; begin table1 := TRVTableItemInfo.CreateEx(2,14, srv.RichViewEdit.RVData); table1.BorderWidth := 0; table1.CellBorderWidth := 0; table1.CellBorderStyle := rvtbColor; table1.CellBorderColor ...
by srvsxf
Tue Sep 21, 2010 3:45 am
Forum: ScaleRichView
Topic: How delete the cursor of the table cells before the tag!
Replies: 4
Views: 21647

How delete the cursor of the table cells before the tag!

when I insert a tag in the table one cell.I find cursor before my tag.

How to delete it?

Please help me.

Thanks! Urgent !
by srvsxf
Tue Sep 21, 2010 1:33 am
Forum: ScaleRichView
Topic: How the Cursor move in the Tags of TSrichViewEdit ?
Replies: 36
Views: 125249

How the Cursor move in the Tags of TSrichViewEdit ?

First,thank your help me!

Now,I find a problem.I want to use the Tags in the TSrichViewEdit .
The user want to used the "Enter" key to move the Cursor.
How I do?


Thank you for your help! I'm very impatient.

Thanks again!