Search found 9409 matches
- Sat Apr 14, 2007 9:22 am
- Forum: Support
- Topic: Change text attributes without using RVStyles?
- Replies: 3
- Views: 12550
procedure InsertText(rve: TCustomRichViewEdit; const sText:string; FontColor, BackColor: TColor; FS:TFontStyles); var TextStyle: TFontInfo; StyleNo: Integer; begin // creating text style with the desired attributes TextStyle := TFontInfo.Create(nil); TextStyle.Assign(rve.Style.TextStyles[rve.CurTex...
- Fri Apr 13, 2007 6:06 pm
- Forum: Support
- Topic: Change text attributes without using RVStyles?
- Replies: 3
- Views: 12550
Styles are the only way to implement this. How do you plan to define these attributes in your application? If using TRichViewEdit, see the demo Demos\Delphi\Editors\Editor 2\ (or use RichViewActions). If using some commands in text string, see this demo http://www.trichview.com/forums/viewtopic.php?...
- Fri Apr 13, 2007 6:02 pm
- Forum: Support
- Topic: Opening Large Documents
- Replies: 2
- Views: 10521
- Fri Apr 13, 2007 6:00 pm
- Forum: Support
- Topic: RTf to XML
- Replies: 1
- Views: 7804
- Thu Apr 12, 2007 7:02 pm
- Forum: Support
- Topic: Can't load RTF in a table cell programmatically
- Replies: 3
- Views: 12246
Or you can use cell editing. But you can edit table cell only AFTER inserting the table in editor: procedure TForm3.ToolButton64Click(Sender: TObject); const RTFString='{\rtf1\ansi\ansicpg1252\deff0\deflang1040{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\fswiss\fcharset0 Arial;}}{\*\generator Ms...
- Thu Apr 12, 2007 7:00 pm
- Forum: Support
- Topic: Can't load RTF in a table cell programmatically
- Replies: 3
- Views: 12246
You can load RTF directly in table cell before inserting table in the editor: procedure TForm3.ToolButton64Click(Sender: TObject); const RTFString='{\rtf1\ansi\ansicpg1252\deff0\deflang1040{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\fswiss\fcharset0 Arial;}}{\*\generator Msftedit 5.41.15.1507;}...
- Thu Apr 12, 2007 6:55 pm
- Forum: Support
- Topic: caret at strange position
- Replies: 7
- Views: 18140
- Thu Apr 12, 2007 2:58 pm
- Forum: Support
- Topic: position after inserting TAB
- Replies: 6
- Views: 16102
- Thu Apr 12, 2007 5:25 am
- Forum: Support
- Topic: Pictures in an RTF files
- Replies: 3
- Views: 11989
Do you want to ignore picture scaling specified in RTF and display all pictures in their original size? Use the following procedure: procedure ResetPicSize(RVData: TCustomRVData); var i,r,c: Integer; Table: TRVTableItemInfo; begin for i := 0 to RVData.ItemCount-1 do case RVData.GetItemStyle(i) of rv...
- Wed Apr 11, 2007 4:47 pm
- Forum: Support
- Topic: Picture Alignment...again ;-)
- Replies: 18
- Views: 50151
Marijn, you are right, this feature is not implemented yet. And the next major update (that will be released soon, after fixing bugs in the current beta and updating the help file) will not include it. But this is the feature that will be implemented first after that. Currently, the only (imperfect)...
- Tue Apr 10, 2007 4:59 pm
- Forum: Support
- Topic: caret at strange position
- Replies: 7
- Views: 18140
- Tue Apr 10, 2007 4:58 pm
- Forum: Support
- Topic: caret at strange position
- Replies: 7
- Views: 18140
Yes, your code is correct.
The simpler version is
because after such SelectionBounds, rvEditor.TopLevelEditor=rvEditor.
The simpler version is
Code: Select all
with rvEditor do begin
SetSelectionBounds(0, GetOffsBeforeItem(0), 0, GetOffsBeforeItem(0));
Invalidate;
end;
- Mon Apr 09, 2007 4:15 pm
- Forum: Support
- Topic: ppRichView.dcu File cannot be found
- Replies: 1
- Views: 7858
ppRichView is a TRichView wrapper for Report Builder. Download links for TRichView version 1.9.24: ReportBuilder 9 and 10: http://www.trichview.com/resources/reportbuilder/rvrb9.zip ReportBuilder 7: http://www.trichview.com/resources/reportbuilder/rvrb.zip Download links for newer version of TRichVi...
- Mon Apr 09, 2007 4:12 pm
- Forum: Support
- Topic: DBRichView Problems
- Replies: 1
- Views: 7953
If you show a new form for editing rich text field in database using TDBRichViewEdit, error can occur. This is a known problem. The solution is simple. Instead of linking DBRichViewEdit to table at design time, do it in Form.OnCreate. For example, leave DataField property of DBRichViewEdit clear in ...