Search found 267 matches

by standay
Thu Apr 23, 2026 2:12 pm
Forum: Support
Topic: Issue with Copying Images from RichView (RVF)
Replies: 2
Views: 120

Re: Issue with Copying Images from RichView (RVF)

My guess is this may be by design. You can put something like this in your copy code or action. It's what I use:

var
gr: TGraphic;
ATag: TRVTag;
RVAlign: TRVVAlign;
s: TRVUnicodeString;
AData: THandle;
APalette: HPALETTE;

begin

if (rv.GetSelectedImage <> nil) then
begin

rv ...
by standay
Fri Mar 20, 2026 1:33 pm
Forum: Support
Topic: RvFontCombobox behavior with multiple fonts
Replies: 4
Views: 1526

Re: RvFontCombobox behavior with multiple fonts

I used this code to do something like that:

var
fi, fi2: TFontInfo;
i, FStart, FSOff, FEnd, FEoff: integer;
rv: TCustomRichViewEdit;
...

rv.GetSelectionBounds(FStart, FSOff, FEnd, FEoff, true);
fi := rv.Style.TextStyles[rv.GetItemStyle(FStart)];

for i := FStart to FEnd do
begin
fi2 ...
by standay
Sat Jan 31, 2026 5:55 pm
Forum: Support
Topic: Setting a Style
Replies: 4
Views: 9441

Re: Setting a Style

Sergey,

Yes, you were right this was working when I tried it in my small test app. What I wound up using in my main app was a TRVStyle not linked to any TRichView. That worked the way I wanted it to work.

Thanks

Stan
by standay
Wed Jan 28, 2026 1:50 pm
Forum: Support
Topic: Setting a Style
Replies: 4
Views: 9441

Re: Setting a Style


The best solution is style modification. If you want the default font "Georgia", specify it in the "Normal" styletemplate. In ActionTest demo, use the menu "Format | Styles", select "Normal (standard)", click the link "Edit" in the font section, and select "Georgia".

OK, is there a way to set ...
by standay
Tue Jan 27, 2026 7:39 pm
Forum: Support
Topic: Setting a Style
Replies: 4
Views: 9441

Setting a Style

Sergey,

Sorry, another styles question!

Say I paste some text in my rve, and it has the Georgia font. If I select the whole paragraph and then use the style combo to set a style, it sets the selcted style and keeps the Georgia font. That's what I want.

But if I select one word and then use the ...
by standay
Mon Jan 26, 2026 7:14 pm
Forum: Support
Topic: Hyperlink Underline Color
Replies: 6
Views: 9613

Re: Hyperlink Underline Color

ValidTextPropertiesEditor was developed only for design-time support...It makes no sense to use ValidTextPropertiesEditor at runtime.
Yes, that explains what I was seeing, thanks.

You can see that it works in "Format | Styles" command.
Yes, I did something similar in my small test app and had ...
by standay
Mon Jan 26, 2026 6:24 pm
Forum: Support
Topic: Hyperlink Underline Color
Replies: 6
Views: 9613

Re: Hyperlink Underline Color

OK, looks like changing the RVEFilervActionNew1 rvfiUnderlineColor setting in the design time ValidTextPropertiesEditor properties in my main app lets the underline color work.

Stan
by standay
Mon Jan 26, 2026 6:21 pm
Forum: Support
Topic: Reset StyleTemplates
Replies: 2
Views: 6538

Re: Reset StyleTemplates

OK, I'll try that.

Thanks Sergey

Stan
by standay
Mon Jan 26, 2026 5:24 pm
Forum: Support
Topic: Hyperlink Underline Color
Replies: 6
Views: 9613

Re: Hyperlink Underline Color

Just trying to get the underline color to change when I paste in a hyper link.

I made a small test program and if I change the rvfiUnderlineColor to true in the component properties of my small test app, the color changes as expected. If I don't change rvfiUnderlineColor in the properties and try ...
by standay
Sun Jan 25, 2026 9:22 pm
Forum: Support
Topic: Horizontal Line and Style
Replies: 1
Views: 7740

Horizontal Line and Style

Hi Sergey,

When I insert a break (horizontal line) I have to add an ApplyStyleTemplate(0) call after every InsertBreak call to keep the correct style name in the styles combo (otherwise it's blank when it should say "Normal"). It does this if I use the HLine rv action as well.

But, the ...
by standay
Sat Jan 24, 2026 4:57 pm
Forum: Support
Topic: Reset StyleTemplates
Replies: 2
Views: 6538

Reset StyleTemplates

Hi Sergey,

Is there a way to reset styletemplates to the usual defaults plus whatever is currently in use in my application? Sometimes I'll paste in some HTML text by mistake (I wanted to paste plain text). When I do that I wind up with a bunch of HTML styles that I don't need. I'd like to be able ...
by standay
Sat Jan 24, 2026 3:44 pm
Forum: Support
Topic: Hyperlink Underline Color
Replies: 6
Views: 9613

Re: Hyperlink Underline Color

For now, I put the code below into the RVStyle1ApplyStyle procedure:

//Overrides hyperlink styletemplate:
for i := 1 to rve.Style.TextStyles.Count-1 do
begin
if rve.Style.TextStyles[i].Jump then
begin
//rve.Style.TextStyles[i].FontName := rve.Style.TextStyles[0].FontName;
//rve.Style ...
by standay
Wed Jan 21, 2026 10:10 pm
Forum: Support
Topic: Hyperlink Underline Color
Replies: 6
Views: 9613

Hyperlink Underline Color

Sergey,

Using styletemplates, I was able to get the hyperlink text color to change using this:

i := RVEFilervActionNew1.StyleTemplates.FindByName(RVHYPERLINKSTYLETEMPLATENAME);
RVEFilervActionNew1.StyleTemplates[i].ValidTextPropertiesEditor :=
'[rvfiUnderline,rvfiColor,rvfiJump ...
by standay
Fri Jan 09, 2026 12:16 pm
Forum: Support
Topic: TRVFontComboBox and Modified
Replies: 7
Views: 17023

Re: TRVFontComboBox and Modified

Hi Sergey,

Yeah, after messing with my regular combobox code some more I see what you mean with this. It's much more tricky than I thought if you want to keep the modified from firing and to keep auto complete functionality which is useful for the font name combo. I have it working fairly well with ...
by standay
Thu Jan 08, 2026 6:35 pm
Forum: Support
Topic: TRVFontComboBox and Modified
Replies: 7
Views: 17023

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.

Hi Sergey,

In my regular VCL combobox, ApplyStyleConversion works in the combo OnClick without ...