This is a screenshot of an application that I use to test new background features.
background-test.png (37.91 KiB) Viewed 2048 times
Probably, it will be included in TRichView demo projects.
As you can see, the parameters are the same as in HTML/CSS.
Background compatibility will be maintained.
I'm working on redesigning the background customization features in the component. The new background system will support almost all the positioning, scaling, and repeating options for background images available in HTML/CSS. I have a question: how important would it be to support multiple ...
TRichViewEdit automatically caches scaled copies of images (in VCL and Lazarus version), so scaled images must be displayed fast after the first redrawing.
There is no RVStyle.BitmapCache.
And how do you load images asynchronously?
By the way, if you want to change font for new documents in RichViewActions (File | New command, or for loaded text styles). it must be done differently depending on using StyleTemplates (named styles).
If you use named styles (RichViewEdit1.UseStyleTemplates = True), change properties of "Normal ...
There is no easy way to do it.
In the next update, I'll extend functionality of OnSaveHTMLExtra event to allow adding additional attributes when saving non-text items.
There are no predefined styles. Each document has its own list of styles. But there are some reserved names of styles, such as "Normal", "heading 1", "Hyperlink", etc. They may have special meaning; and RichViewActions display their names translated. But documents do not necessary include these ...
As I said in the very beginning, RichViewActions applies the collection of rvActionNew.StyleTemplates to new documents. This collection has 5 styles in this demo. But you can edit this collection - add and delete style (although, I do not recommend deleting the initial styles). In the ActionTest ...
There is no "5 styles" limitation. But not all styles are displayed in the cmbobox by default. With the default settings, the combobox displays: - styles that have QuickAccess property = True - used heading level styles + one extra heading level style (but not less than 3 heading level styles). If ...
As for the initial display, when the application starts, call rvActionNew.ExecuteTarget(RichViewEdit);
This command associates the editor with an unsaved file, and (if RichViewEdit.UseStyleTemplates = True) applies rvActionNew.StyleTemplates to the empty document, and updates cmbStyles.
The code supporting starting and ending codes in different cells is below.
This kind of selection (from the starting cell till the end of the row; then all cells in the rows between; then cells till the ending cell) is not natural for TRichViewEdit: TRichViewEdit selects cell that are inside the ...