Search found 9411 matches

by Sergey Tkachenko
Mon Sep 05, 2005 11:40 am
Forum: Support
Topic: Doing selection within table cells
Replies: 3
Views: 22701

Example: uses CRVData, CRVFData, RVTable; procedure TfrmTextEdit.DeleteAllPictures(RVData: TCustomRVData); var i, r, c: Integer; Table: TRVTableItemInfo; begin for i := RVData.ItemCount - 1 downto 0 do case RVData.GetItemStyle(i) of rvsPicture, rvsHotPicture: begin RVData := RVData.Edit; TCustomRVFo...
by Sergey Tkachenko
Mon Sep 05, 2005 11:24 am
Forum: Support
Topic: Doing selection within table cells
Replies: 3
Views: 22701

TCustomRichViewEdit(RichViewEdit1.InplaceEditor) returns the inplace editor of table inside RichViewEdit1 (can be nil if inplace editor is not activated). This editor, in its order, can have its own inplace editor (for editing cell of nested table) and so on. The latest inplace editor is available a...
by Sergey Tkachenko
Sun Sep 04, 2005 2:09 pm
Forum: Support
Topic: Insert Picture Question
Replies: 4
Views: 24503

Nothing too complicated, of course.
The only problem - the positioning relative to the line bottom/middle/top must be done after the calculation of the line vertical position, while baseline-related position does not require a post processing.
by Sergey Tkachenko
Sat Sep 03, 2005 5:08 pm
Forum: Support
Topic: How To Accomplish The Following...
Replies: 4
Views: 23289

This is quite a complicated logic, there are no methods to make it simple. General direction - in OnChange, use SearchText (or other method) to find the character, then use SetSelectionBounds, ApplyStyleConversion, InsertText. Similar work is performed in the simple RichViewEdit-based syntax highlig...
by Sergey Tkachenko
Sat Sep 03, 2005 4:53 pm
Forum: Support
Topic: Insert Picture Question
Replies: 4
Views: 24503

Unfortunately, generally it's not possible, if you do not know text height. Image can be positioned relative to the text base line, not relative to the middle of line. More options will be implemented in future, but not now. Properties for vertical text positioning: 1) VAlign has 2 values: - image b...
by Sergey Tkachenko
Fri Sep 02, 2005 3:08 pm
Forum: Support
Topic: Deleting Blank Lines
Replies: 5
Views: 27194

Thank you, I fixed the code
by Sergey Tkachenko
Thu Sep 01, 2005 4:26 pm
Forum: Support
Topic: Stream problems using controls Developer Express Controls
Replies: 4
Views: 23187

Hmm, it should be safe to free the old control here.
Calling TRichView(Sender).RemoveControl(lOldCtrl) is not needed. What if you remove it?
by Sergey Tkachenko
Thu Sep 01, 2005 4:18 pm
Forum: Support
Topic: add multi Line text with Tag
Replies: 1
Views: 16527

There is no such method. Use AddNLATag for each text line
by Sergey Tkachenko
Thu Sep 01, 2005 2:05 pm
Forum: Support
Topic: Need to highlight all text that matches string
Replies: 1
Views: 15010

The seach selects the found string.
Call ApplyTextStyle or ApplyStyleConversion to change the selection font.
A simple example can be found in Demos\Delphi\MultiDemo\, the last subdemo.
by Sergey Tkachenko
Thu Sep 01, 2005 12:54 pm
Forum: Support
Topic: Deleting Blank Lines
Replies: 5
Views: 27194

Should it be an editing operation (that can be undone/redone by user)? If not, the code is below: procedure DeleteBlankLines(RVData: TCustomRVData); var i,r,c: Integer; table: TRVTableItemInfo; begin for i := RVData.ItemCount-1 downto 0 do if RVData.IsParaStart(i) and (RVData.GetItemStyle(i)>=0) and...
by Sergey Tkachenko
Thu Sep 01, 2005 12:26 pm
Forum: Support
Topic: Export Header/Footer to RTF
Replies: 24
Views: 70232

Well, really? :)

It's not so hard to make a "quick and dirty" solution for this problem.
So, if you are satisfied with other TRichView feature, consider this function done
by Sergey Tkachenko
Thu Sep 01, 2005 12:14 pm
Forum: Support
Topic: I have a problem whit Tables
Replies: 4
Views: 20662

Yes, this is a limitation of the current version of TRichView.
I plan to fix it in very near future
by Sergey Tkachenko
Wed Aug 31, 2005 7:36 pm
Forum: Support
Topic: Export Header/Footer to RTF
Replies: 24
Views: 70232

Unfortunately, it's not so trivial.

OnSaveRTFExtra can be used to save plain text headers, or headers with some simple formatting.

Saving arbitrary TRichView document as RTF header is not possible in the current version.
by Sergey Tkachenko
Wed Aug 31, 2005 7:31 pm
Forum: Support
Topic: Question concerning ChartItem & loadRTF
Replies: 1
Views: 14869

It's included in the main set of demos, for example in http://www.trichview.com/rvfiles/rvhelp.zip The directrory inside this zip is Demos\Addins\ChartItem\ It does not provide RTF saving of charts, but I can modify it to save them as pictures, it's very easy. But they will not be loaded as TCharts ...
by Sergey Tkachenko
Wed Aug 31, 2005 7:22 pm
Forum: Support
Topic: Problem with SaveHtml and SaveHtmlToStream functions in RV
Replies: 3
Views: 20322

HTML does not support complex numbering.

It's only possible to export it as a text (and MS Word does it).
TRichView can do it too: include rvsoMarkersAsText in Options of SaveHTML/SaveHTMLEx