Search found 9736 matches

by Sergey Tkachenko
Sun Nov 19, 2006 6:16 pm
Forum: Support
Topic: .net version of RV?
Replies: 8
Views: 23440

TRichView for .NET is planned, but not for near future.
It's better not to rely on it.
by Sergey Tkachenko
Sun Nov 19, 2006 6:15 pm
Forum: Support
Topic: TRVTableItemInfo become empty after formatting document!
Replies: 2
Views: 13495

This code is correct.
May be this cell is deleted because of cell merging?
Check if ATable.Cells[StartRow, StartCol]<>nil
by Sergey Tkachenko
Sun Nov 19, 2006 6:12 pm
Forum: Support
Topic: Problem with SetListMarkerInfo and TRichView
Replies: 2
Views: 13123

You add a list marker, then add a text from new line.
It's wrong, list markers cannot be the only item in paragraph, you must add next item in the same paragraph (ParaNo parameter of AddNLW must be = -1)
by Sergey Tkachenko
Sun Nov 19, 2006 6:08 pm
Forum: Support
Topic: Removing Hyperlinks
Replies: 4
Views: 16703

If you use RichViewActions:

Create a new TrvActionInsertHyperlink action.
In the localization procedure of your form, assign its caption and hint to something like 'Convert To Plain Text', 'Remove Hyperlinks'.

Implement 2 events of this action: OnHyperlinkForm and OnUpdate.
In the ActionTest demo ...
by Sergey Tkachenko
Thu Nov 16, 2006 9:07 pm
Forum: Support
Topic: How Find&Replace "anithing in a TrichEdit?
Replies: 5
Views: 22115

In the help file, in the topic "Controls, Documents, Items", there is an example, procedure AllUpperCase.
This procedure enumerates all items in the document (include items of table cells) and changes all text to upper case.
You can change this procedure to implement another operation on strings ...
by Sergey Tkachenko
Thu Nov 16, 2006 6:08 pm
Forum: Support
Topic: How Find&Replace "anithing in a TrichEdit?
Replies: 5
Views: 22115

Should it be an editing operation or not? (editing operations are slower, they can be undone by users).

As for implementing as editing operation, use rve.SearchText


var ltable: TRVTableItemInfo;
lrve: TCustomRichViewEdit;

// replacing all occurences of word 'Hello' to 'Ciao'
rve ...
by Sergey Tkachenko
Thu Nov 16, 2006 5:45 pm
Forum: Support
Topic: Adding a field that is a Formatted Memo field?
Replies: 4
Views: 18992

http://www.trichview.com/support/files/copytotable.zip

Assuming that the table has this important text in the first item of Cells[0,0], you can get it as table.Cells[0,0].GetRVData.GetItemTextA(0).
by Sergey Tkachenko
Thu Nov 16, 2006 5:17 pm
Forum: Support
Topic: Win98 and wide text changing to white
Replies: 2
Views: 14486

I added this problem in my records to investigate later.
I treat it as an extraordinary case, so it will not have high priority, sorry.
by Sergey Tkachenko
Wed Nov 15, 2006 4:53 pm
Forum: Support
Topic: Edit Line of a Cell
Replies: 5
Views: 23099

Inserting text not at the end of document is not possible using documented methods. Well, I can make an example of inserting text in the beginning of each cell, but may be this will be not what you need.
Can you explain what to you want to implement with more details?
by Sergey Tkachenko
Wed Nov 15, 2006 4:43 pm
Forum: Support
Topic: How to make a fontstyle format brush like in MS Word?
Replies: 7
Views: 26032

Well, there is a simpler solution.

StyleNo: Integer; // form's variable

On form's creation:
StyleNo := -1;

Reading the current text format:
StyleNo := RichViewEdit1.CurTextStyleNo;

Applying to the selection:
if StyleNo>=0 then
RichViewEdit1.ApplyTextStyle(StyleNo);

The only problem ...
by Sergey Tkachenko
Wed Nov 15, 2006 4:37 pm
Forum: Support
Topic: How to make a fontstyle format brush like in MS Word?
Replies: 7
Views: 26032

Ok, let we have RichViewEdit1: TRichViewEdit, linked to RVStyle1: TRVStyle.
TextStyle: TFontInfo; // form's variable

Reading current text format:
TextStyle.Free;
TextStyle := TFontInfo.Create(nil);
TextStyle.Assign(RVStyle.TextStyles[RichViewEdit1.CurTextStyleNo]);

Applying to the selection ...
by Sergey Tkachenko
Wed Nov 15, 2006 3:41 pm
Forum: Support
Topic: Adding a field that is a Formatted Memo field?
Replies: 4
Views: 18992

As for copying from TRichEdit, it's simple.
Use RichEdit.Lines.SaveToStream to write, and RichView.LoadRTFFromStream to read.
Formatting will be kept, assuming that
1) RichEdit.PlainText = False
2) RichView.RTFReadProperties.TextStyleMode= RichView.RTFReadProperties.ParaStyleMode=rvrsAddIfNeeded.
by Sergey Tkachenko
Wed Nov 15, 2006 3:17 pm
Forum: Support
Topic: Adding a field that is a Formatted Memo field?
Replies: 4
Views: 18992

As for the given visual layout, you can implement it using tables.

Table with 2 columns and 1 row.
In the first cell: 'Contest:'
In the second cell: field which will be replaced to the formatted document.

As for implementing fields where values are arbitrary formatted documents, see Demos\Delphi ...
by Sergey Tkachenko
Wed Nov 15, 2006 3:01 pm
Forum: Support
Topic: Set tabs by buttonClick
Replies: 9
Views: 31021

j&b, so, as I understand, you need to create a paragraph style with the given tab stops to add some text lines formatted with this paragraph style.

{ This function returns index of paragraph style with the
specified collection of tabs. If such paragraph style does not
exist, this function adds ...
by Sergey Tkachenko
Wed Nov 15, 2006 2:33 pm
Forum: Support
Topic: Set tabs by buttonClick
Replies: 9
Views: 31021

Pieter, your code clears all existing tabs and then adds new tabs. My code adds new tabs in addition to the existing tabs.

Without clearing, you should search if some tab exists at the given position (using ParaInfo.Tabs.Find), and, if exists, update its properties instead of adding a new tab ...