Search found 9411 matches

by Sergey Tkachenko
Thu Feb 15, 2007 4:52 pm
Forum: Support
Topic: RV.clear / free
Replies: 3
Views: 12040

The same problem, the same solution :)

Code: Select all

          //INSERT GIF 
          GIF :=  TjvGIFImage.Create;
          GIF.Assign(SmilieManager.GetSmilie(ord(sl[i][1]))); 
          if not Gif.Empty then 
            form1.RichView1.AddPictureEx('',GIF,-1,rvvaBaseline)
          else
            GIF.Free;
by Sergey Tkachenko
Thu Feb 15, 2007 8:59 am
Forum: Support
Topic: RV.AddNL();
Replies: 2
Views: 10223

To add text on the same line, pass -1 in ParaNo paramer.
For example:

Code: Select all

rv.AddNL('text 1 ', 0, 0);
rv.AddNL('text 2 ', 1, -1);
rv.AddNL('text 3 ', 2, -1);
rv.Format;
by Sergey Tkachenko
Wed Feb 14, 2007 5:06 pm
Forum: Support
Topic: How to support unicode for multiline text
Replies: 7
Views: 20302

Oops, sorry.
Done. Not only modifications to support Unicode in this demo, but also a completely Unicode version.
See here: http://www.trichview.com/forums/viewtopic.php?t=9#5883
by Sergey Tkachenko
Wed Feb 14, 2007 5:03 pm
Forum: Examples, Demos
Topic: [Demo] Simple scripting
Replies: 2
Views: 49441

Update: this version of demo is for old version of TRichView, from 13.4 to 17.2. The main version of this demo (see above) is compatible with TRichView 17.3 and always processes all text as Unicode. http://www.trichview.com/support/files/scriptw.zip This is a Unicode version of this demo. All proces...
by Sergey Tkachenko
Wed Feb 14, 2007 3:19 pm
Forum: Support
Topic: Inserting control into TRichViewEdit
Replies: 1
Views: 8729

Yes, TRichView uses tags of inserted controls, and it cannot be turned off.

Suggestion: create a new component inherited from TComboBox with new published integer property, and use it instead.
by Sergey Tkachenko
Tue Feb 13, 2007 10:57 am
Forum: Support
Topic: Set table line style to dotted line
Replies: 3
Views: 12594

Table events cannot be saved in files. You need to reassign item events when table is inserted in the document. Use OnItemAction event: procedure TForm3.RichViewEdit1ItemAction(Sender: TCustomRichView; ItemAction: TRVItemAction; Item: TCustomRVItemInfo; var Text: String; RVData: TCustomRVData); begi...
by Sergey Tkachenko
Sat Feb 10, 2007 10:16 am
Forum: Support
Topic: Paste Format
Replies: 2
Views: 11826

by Sergey Tkachenko
Fri Feb 09, 2007 10:55 am
Forum: Examples, Demos
Topic: [How to] How to make plain text editor
Replies: 3
Views: 60869

:?: How to make ONE LINE plain text editor Exclude all but text (rvddText for Delphi 3-2007, rvddUnicodeText for Delphi 2009+) from AcceptDragDropFormats property Process OnPaste event (see below) Process OnOleDrop event (see below) Disable all UI commands changing text and paragraph attributes or i...
by Sergey Tkachenko
Fri Feb 09, 2007 8:57 am
Forum: Support
Topic: Set table line style to dotted line
Replies: 3
Views: 12594

Only by drawing it yourself in table.OnDrawBorder event.
by Sergey Tkachenko
Thu Feb 08, 2007 4:03 pm
Forum: Support
Topic: InsertText in different color of the text in richview
Replies: 4
Views: 12582

Can you create a simple project reproducing the problem and send it to me?
by Sergey Tkachenko
Thu Feb 08, 2007 11:03 am
Forum: Support
Topic: Copy/Paste without Linefeed
Replies: 4
Views: 17185

What's your version of TRichView?
by Sergey Tkachenko
Thu Feb 08, 2007 9:03 am
Forum: Support
Topic: InsertText in different color of the text in richview
Replies: 4
Views: 12582

function GetTextStyleWithColor(rve: TCustomRichViewEdit; Color: TColor): Integer; var BackColor: TColor; begin BackColor := rve.Style.TextStyles[rve.CurTextStyleNo].BackColor; Result := rve.Style.TextStyles.FindStyleWithColor(rve.CurTextStyleNo, Color, BackColor); if Result<0 then begin // the styl...
by Sergey Tkachenko
Thu Feb 08, 2007 8:54 am
Forum: Support
Topic: Setting text style to selected text in a table/cell
Replies: 2
Views: 10350

What do you mean be removing all formatting? Assigning the same text style to all loaded text? May be you can do it on RTF loading. Try the following settings: 1) Create Unicode text style; 2) RichViewEdit1.RTFReadProperties.UnicodeMode := rvruOnlyUnicode; 3) RichViewEdit1.RTFReadProperties.TextStyl...