Search found 9822 matches
- Tue Feb 03, 2026 7:10 pm
- Forum: ScaleRichView
- Topic: set BottomMargin with Footer Height
- Replies: 5
- Views: 131
Re: set BottomMargin with Footer Height
Please send me a project (as simple as possible) reproducing this problem.
- Sun Feb 01, 2026 5:00 pm
- Forum: ScaleRichView
- Topic: set BottomMargin with Footer Height
- Replies: 5
- Views: 131
Re: set BottomMargin with Footer Height
I mean, this is the formula used by ScaleRichView internally.
Does your footer has height greater than 1/3 of page height?
Does your footer has height greater than 1/3 of page height?
- Sat Jan 31, 2026 1:53 pm
- Forum: ScaleRichView
- Topic: set BottomMargin with Footer Height
- Replies: 5
- Views: 131
Re: set BottomMargin with Footer Height
Why do you want to do it?
ScaleRichView displays bottom margin large enough to include footer, even if PageProperty.BottomMargin is small (but the limit of 1/3 page height).
I.e.,
visible_bottom_margin = max(
PageProperty.BottomMargin,
min(PageProperty.FooterY + footer_height, PageProperty ...
ScaleRichView displays bottom margin large enough to include footer, even if PageProperty.BottomMargin is small (but the limit of 1/3 page height).
I.e.,
visible_bottom_margin = max(
PageProperty.BottomMargin,
min(PageProperty.FooterY + footer_height, PageProperty ...
- Sat Jan 31, 2026 12:27 pm
- Forum: Support
- Topic: Font Size ComboBox becomes empty after manual Font Name entry
- Replies: 1
- Views: 61
Re: Font Size ComboBox becomes empty after manual Font Name entry
It's by design.
This combobox is empty when the selected font does not exist or unavailable.
The font 'Aptos' is usually not available for non-Microsoft applications (you can check, can you see it in the font combobox?), so the font size combobox does not show suggestions for it. But the combobox ...
This combobox is empty when the selected font does not exist or unavailable.
The font 'Aptos' is usually not available for non-Microsoft applications (you can check, can you see it in the font combobox?), so the font size combobox does not show suggestions for it. But the combobox ...
- Sat Jan 31, 2026 12:00 pm
- Forum: Support
- Topic: Setting a Style
- Replies: 4
- Views: 218
Re: Setting a Style
1) Do you want to apply the default font to new documents?
Find "Normal" item in rvActionNew.StyleTemplates, and assign it properties:
TextStyle.FontName := 'Georgia';
ValidTextProperties := ValidTextProperties + [rvfiFontName];
You can do it at designtime, or at runtime before the first execution ...
Find "Normal" item in rvActionNew.StyleTemplates, and assign it properties:
TextStyle.FontName := 'Georgia';
ValidTextProperties := ValidTextProperties + [rvfiFontName];
You can do it at designtime, or at runtime before the first execution ...
- Wed Jan 28, 2026 9:49 am
- Forum: Support
- Topic: Setting a Style
- Replies: 4
- Views: 218
Re: Setting a Style
This is by design,
Your text has font "Georgia" applied on top of properties defined by its styletemplate.
When you apply a styletemplate, the results depend on the selection. If the selection contains multiple paragraphs, the styletemplate is applied only to paragraph properties. Text properties ...
Your text has font "Georgia" applied on top of properties defined by its styletemplate.
When you apply a styletemplate, the results depend on the selection. If the selection contains multiple paragraphs, the styletemplate is applied only to paragraph properties. Text properties ...
- Mon Jan 26, 2026 6:38 pm
- Forum: Support
- Topic: Hyperlink Underline Color
- Replies: 6
- Views: 408
Re: Hyperlink Underline Color
This code must work:
procedure TForm1.FormCreate(Sender: TObject);
var
i: integer;
begin
i := RVEFilervActionNew1.StyleTemplates.FindByName(RVHYPERLINKSTYLETEMPLATENAME);
RVEFilervActionNew1.StyleTemplates[i].ValidTextProperties := [rvfiUnderline,rvfiColor,rvfiJump,rvfiUnderlineColor ...
procedure TForm1.FormCreate(Sender: TObject);
var
i: integer;
begin
i := RVEFilervActionNew1.StyleTemplates.FindByName(RVHYPERLINKSTYLETEMPLATENAME);
RVEFilervActionNew1.StyleTemplates[i].ValidTextProperties := [rvfiUnderline,rvfiColor,rvfiJump,rvfiUnderlineColor ...
- Mon Jan 26, 2026 6:11 pm
- Forum: Support
- Topic: Reset StyleTemplates
- Replies: 2
- Views: 173
Re: Reset StyleTemplates
There is no special method to reset StyleTemplates.
If you want to remove them in code, do it in the way shown in the topic https://www.trichview.com/help/idh_trichviewedit_changestyletemplates.html
RVStyleTmp.Units := RichViewEdit1.Style.Units;
RVStyleTmp.StyleTemplates.AssignStyleTemplates ...
If you want to remove them in code, do it in the way shown in the topic https://www.trichview.com/help/idh_trichviewedit_changestyletemplates.html
RVStyleTmp.Units := RichViewEdit1.Style.Units;
RVStyleTmp.StyleTemplates.AssignStyleTemplates ...
- Mon Jan 26, 2026 4:48 pm
- Forum: Support
- Topic: Hyperlink Underline Color
- Replies: 6
- Views: 408
Re: Hyperlink Underline Color
I made the following test:
In the ActionTest demo, I edited rvActionNew1.StyleTemplates at design time. For "Hyperlink" item, I changed:
Color = clWindowText
UnderlineColor = clAqua
ValidTextPropertiesEditor (this is how ValidTextProperties are called in the Object Inspector) = [rvfiUnderline ...
In the ActionTest demo, I edited rvActionNew1.StyleTemplates at design time. For "Hyperlink" item, I changed:
Color = clWindowText
UnderlineColor = clAqua
ValidTextPropertiesEditor (this is how ValidTextProperties are called in the Object Inspector) = [rvfiUnderline ...
- Fri Jan 16, 2026 11:38 am
- Forum: Support
- Topic: Resetting Text Style for Selected Items Without Losing Hyperlinks
- Replies: 3
- Views: 678
Re: Resetting Text Style for Selected Items Without Losing Hyperlinks
When style templates are used, ApplyStyleTemplate(-1) does the same work as MS Word: paragraphs are formatted using "Normal" styletemplate, hyperlinks are formatted using "Hyperlink" styletemplate, all other attributes are removed.
Without styletemplates, we need to answer to additional questions ...
Without styletemplates, we need to answer to additional questions ...
- Fri Jan 16, 2026 8:17 am
- Forum: Support
- Topic: Resetting Text Style for Selected Items Without Losing Hyperlinks
- Replies: 3
- Views: 678
Re: Resetting Text Style for Selected Items Without Losing Hyperlinks
If you use style templates (rve.UseStyleTemplates = True), the simplest solution to reset formatting is calling rve.ApplyStyleTemplate(-1).
Without style templates, you need to define the meaining of "resetting text style".
Do you want to assign:
- properties of rve.Style.TextStyles[0] to all non ...
Without style templates, you need to define the meaining of "resetting text style".
Do you want to assign:
- properties of rve.Style.TextStyles[0] to all non ...
- Fri Jan 09, 2026 4:35 pm
- Forum: Support
- Topic: TRVFontComboBox and Modified
- Replies: 6
- Views: 1441
Re: TRVFontComboBox and Modified
This problem will be solved by modifying TRichViewEdit.ApplyStyleConversion (and all other Apply* methods).
TRichViewEdit.ApplyStyleConversion will do nothing (and do not call OnChange), if this operation does not modify document.
TRichViewEdit.ApplyStyleConversion will do nothing (and do not call OnChange), if this operation does not modify document.
- Thu Jan 08, 2026 5:45 pm
- Forum: Support
- Topic: TRVFontComboBox and Modified
- Replies: 6
- Views: 1441
Re: TRVFontComboBox and Modified
The problem is in ApplyStyleConversion, not in the combobox. It calls OnChange even if nothing was changed. This problem is noticeable in TRVFontComboBox because it applies itself when losing focus.
- Thu Jan 08, 2026 12:25 pm
- Forum: Support
- Topic: TRVFontComboBox and Modified
- Replies: 6
- Views: 1441
Re: TRVFontComboBox and Modified
This change isn't as simple as it seems at first glance.
We need to add checks to ensure that the operation has changed anything in the document. This requires numerous small changes in many places in the code. This will be added in the next update.
We need to add checks to ensure that the operation has changed anything in the document. This requires numerous small changes in many places in the code. This will be added in the next update.
- Sun Jan 04, 2026 11:49 am
- Forum: Support
- Topic: Create constructor never called in the TRVGraphicItemInfo descendants
- Replies: 2
- Views: 1214
Re: Create constructor never called in the TRVGraphicItemInfo descendants
AFAIK, virtual constructors do not work in the way you expect.
Yes, TRVGraphicItemInfo.CreateEx calls inherited Create(ARVData), i.e. constructor TRVRectItemInfo.Create(ARVData: TPersistent), which is virtual.
However, even if you override this constructor in your class, TRVGraphicItemInfo.CreateEx ...
Yes, TRVGraphicItemInfo.CreateEx calls inherited Create(ARVData), i.e. constructor TRVRectItemInfo.Create(ARVData: TPersistent), which is virtual.
However, even if you override this constructor in your class, TRVGraphicItemInfo.CreateEx ...