First, turn of autocompletion:
cmbFont.AutoComplete := False;
In RichViewEdit1.OnCurTextStyleChanged, assign the current text style to cmbFont.Text.
In cmbFont.OnClick, apply the chosen font (using rvActionFontEx).
You can see how it is implemented in the ActionTest demo.
Search found 9401 matches
- Tue Feb 05, 2008 11:28 am
- Forum: Support
- Topic: richviewactions, TRichView
- Replies: 1
- Views: 7306
- Mon Feb 04, 2008 4:03 pm
- Forum: Support
- Topic: How to enable action shortcut
- Replies: 2
- Views: 9490
- Sun Feb 03, 2008 6:11 pm
- Forum: ScaleRichView
- Topic: srve + embedded hyperlinks not rendering to PDF
- Replies: 3
- Views: 17703
In PDF, you can define some rectangular areas as hyperlinks (LLPDFLib: pdf.Page .SetUrl method). When exporting to PDF using TRVReportHelper, you can use TRVReportHelper.OnDrawHyperlink event. Unfortunately, this feature is not implemented in ScaleRichView yet (will be implemented in one of next upd...
- Sun Feb 03, 2008 6:06 pm
- Forum: ScaleRichView
- Topic: more RVAction Hyperlink questions
- Replies: 11
- Views: 36327
- Sun Feb 03, 2008 5:26 pm
- Forum: Support
- Topic: Finding a StyleNo
- Replies: 1
- Views: 8040
Code: Select all
Result := RVStyle1.TextStyles.FindStyleWithFont(Edit1.Font);
if Result<0 then begin
RVStyle1.TextStyles.Add;
Result := RVStyle1.TextStyles.Count-1;
RVStyle1.TextStyles[Result].Assign(Edit1.Font);
RVStyle1.TextStyles[Result].Standard := False;
end;
- Sun Feb 03, 2008 5:13 pm
- Forum: Support
- Topic: rveTable.Cells[r,c].BestWidth
- Replies: 1
- Views: 7963
1. Widths of table columns are calculated taking into account both BestWidth properties and cells contents. If you want to use only BestWidth, ignoring content, include rvtoIgnoreContentWidth in table.Options. 2. Any number of RichViews can use one RVStyle component. But in this case you need to und...
- Sun Feb 03, 2008 4:48 pm
- Forum: Support
- Topic: Insert gif-image(animated) into TRichViewEdit from stream
- Replies: 5
- Views: 15780
- Sun Feb 03, 2008 4:45 pm
- Forum: Support
- Topic: rvActionSaveAs1 - Filename?
- Replies: 1
- Views: 7285
- Sun Feb 03, 2008 4:41 pm
- Forum: Support
- Topic: Save and load document(TRicViewEdit)
- Replies: 1
- Views: 6974
- Sun Feb 03, 2008 4:38 pm
- Forum: Support
- Topic: Selected text
- Replies: 1
- Views: 7472
- Thu Jan 31, 2008 2:06 pm
- Forum: Support
- Topic: Insert gif-image(animated) into TRichViewEdit from stream
- Replies: 5
- Views: 15780
- Thu Jan 31, 2008 12:28 pm
- Forum: Support
- Topic: Insert gif-image(animated) into TRichViewEdit from stream
- Replies: 5
- Views: 15780
If gif image is stored in TMemoryStream, you can load it in the proper graphic class (see http://www.trichview.com/forums/viewtopic.php?t=89) and insert: var gif: TGifImage; gif := TGifImage.Create; Stream.Position := 0; gif.LoadFromStream(Stream); RichViewEdit1.InsertPicture('', gif, rvvaBaseLine);...
- Wed Jan 30, 2008 5:41 pm
- Forum: Support
- Topic: Register Controls of Third Party
- Replies: 1
- Views: 7969
TDateEdit contains 2 subcontrols: TEditButton and TPopupCalendar. All of them must be registered with RegisterClasses. There is no problem for TEditButton, but TPopupCalendar is defined in the implementation section of PickDate unit, so you need to change RXLib source code. The most simple way is ad...
- Tue Jan 29, 2008 6:57 pm
- Forum: Support
- Topic: Inserting Text in RichView
- Replies: 1
- Views: 8092
- Mon Jan 28, 2008 6:18 pm
- Forum: Support
- Topic: TableSort.Pas Problems
- Replies: 1
- Views: 7945