Search found 9445 matches

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: 15592

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: 11032

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: 18195

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: 22186

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 with this solutio...
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: 22186

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: var Sty...
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: 15592

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: 15592

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\Ass...
by Sergey Tkachenko
Wed Nov 15, 2006 3:01 pm
Forum: Support
Topic: Set tabs by buttonClick
Replies: 9
Views: 25259

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 i...
by Sergey Tkachenko
Wed Nov 15, 2006 2:33 pm
Forum: Support
Topic: Set tabs by buttonClick
Replies: 9
Views: 25259

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. Using...
by Sergey Tkachenko
Tue Nov 14, 2006 9:19 pm
Forum: Support
Topic: Set tabs by buttonClick
Replies: 9
Views: 25259

Ok. Assuming that you do not use RichViewActions... All editing operations on paragraph attributes, including tabs, must be implemented using ApplyParaStyleConversion procedure + OnParaStyleConversion event. How to add this command to the demo in Demos\Delphi\Editors\Editor 2\: Open Unit1.pas. Find ...
by Sergey Tkachenko
Tue Nov 14, 2006 7:20 pm
Forum: Support
Topic: RichViewEdit.GetTextLen always "0"
Replies: 1
Views: 9493

GetTextLen simple uses WM_GETTEXTLENGTH message. Processing of WM_GETTEXT, WM_GETTEXTLENGTH, WM_SETTEXT was disabled for Delphi 2005 and 2006, because it conflicted with VCL implementation. Sorry, I do not plan to restore them. EM_GETTEXTLENGTHEX is not supported. Use the functions RVGetTextRange an...
by Sergey Tkachenko
Tue Nov 14, 2006 7:10 pm
Forum: Support
Topic: Crash on Print Preview (RichViewActions)
Replies: 1
Views: 11234

Confirmed. It may happen when previewing text formatted with raster (not TrueType) font.
Fix: Open RVStyle.pas, find two calls of RVU_GetTextExtentExPoint, change the 3rd parameter from Width*2 to $FFFFFFF.
by Sergey Tkachenko
Tue Nov 14, 2006 5:56 pm
Forum: Support
Topic: Printing Problem with tables!
Replies: 47
Views: 152085

You should be able too see it now.
by Sergey Tkachenko
Tue Nov 14, 2006 5:47 pm
Forum: Support
Topic: FastReport 3 Wrapper ?
Replies: 6
Views: 18797

Sorry, no
by Sergey Tkachenko
Tue Nov 14, 2006 5:46 pm
Forum: Support
Topic: Set tabs by buttonClick
Replies: 9
Views: 25259

As en edting operation (which can be undone by user)? For the selected paragraphs?