TRVStyleTemplateComboBox and Delphi 5

General TRichView support forum. Please post your questions here
Post Reply
Andre
Posts: 4
Joined: Tue Feb 17, 2015 1:48 pm

TRVStyleTemplateComboBox and Delphi 5

Post by Andre »

How do I connect a TRVStyleTemplateComboBox to a TSRichViewEdit in Delphi 5.

The same question for a TRVFontComboBox and a TRVFontSizeCombobox.

In Delphi 5 there is no property "Editor" and when I try to connect them through code I get an error: Incompatible types: 'TCustomRichViewEdit' and 'TSRichViewEdit'
Sergey Tkachenko
Site Admin
Posts: 17561
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Which version of TRichView do you use?
Andre
Posts: 4
Joined: Tue Feb 17, 2015 1:48 pm

TRVStyleTemplateComboBox and Delphi 5

Post by Andre »

The component TSRichViewEdit property version = v4.7.2

The package is: 13.12.1
Sergey Tkachenko
Site Admin
Posts: 17561
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Your version of the components is too old.
You need a newer version of TRichView.
As far as I can see, these changes were implemented in RichViewActions 3.10, that corresponds to TRichView 13.13
Andre
Posts: 4
Joined: Tue Feb 17, 2015 1:48 pm

TRVStyleTemplateComboBox and Delphi 5

Post by Andre »

So, in the version I have it is not possible?

Is the latest version compatible with Delphi 5?
Sergey Tkachenko
Site Admin
Posts: 17561
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

In older versions of TRichView, you need to write special code to fill and update the comboboxes.
In new versions, it's enough just to link them with TRichViewEdit or TSRichViewEdit, they will do all the work automatically.

Yes, new versions are compatible with Delphi 5.
Andre
Posts: 4
Joined: Tue Feb 17, 2015 1:48 pm

TRVStyleTemplateComboBox and Delphi 5

Post by Andre »

Do you have sample code to fill and update the comboboxes?
Sergey Tkachenko
Site Admin
Posts: 17561
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

I still suggest to upgrade.
Please send me a private message with details of your order, I'll tell you which version you can use for free.
If you have 13.12.1, then you can upgrade for free at least to v13.13.8, and it is already has automatic combo boxes.
Post Reply