is a set of controls designed for insertion in ScaleRichView WYSIWYG editor.
While you can insert any controls, SRVControls are better because:
- they can be scaled without losing image quality;
- edits, memos, combo boxes of SRVControls can display caret when inserted in TSRichViewEdit.
SRVControls can be used in ScaleRichView documents, TRichView documents, or on a form.
SRVControls are free for registered users of ScaleRichView.
They include: buttons, checkboxes, radio buttons, panels, group boxes, scrollbars, edit boxes, memos, list boxes, combo boxes, tab sets, image scrollers, labels.
Most of them provide functionality of standard controls, but some of them are advanced:
- combo boxes and list boxes can show images, items may be indented to show a tree-like structure, items may have custom fonts and colors;
- list boxes can have checkboxes in items
- buttons may have images
- tab sets allow rearranging and closing tabs.
In this update, SRVControls were improved.
SRVControls had a problem: their appearance was not consistent. Some of them were colorful and used gradients, some of them looked old-styled.
This problem can be solved by using skins (TRVSkinManager
components), but it requires efforts for creating images for skins, and images look not ideal when scaled for displaying in High DPI display modes.
So we designed a new modern and consistent appearance, inspired by (but not identical to) appearance of RAD Studio 10.3.
In RAD Studio XE2 and newer, new drawing of SRVControls use GDI+ for smooth drawing with anti-aliased lines and fill borders.
SRVCheckBox and SRVRadioButton in ScaleRichView, zoom = 300%
A classic appearance of SRVControls is not removed. It can be returned by assigning
to SRVControlStyle property of SRVControls. Moreover, classic appearance was reworked and looks better now.
The important feature of new appearance is centralized control over colors. While in the classic appearance all colors were defined in the components themselves, in the new appearance most colors are defined in the global RVControlsPainter
singleton object (RVControls.pas).
You can assign individual colors, or choose one of predefined color themes: pale blue, spring green, sienna, high contrast.
New appearance, pale blue theme
New appearance, spring green theme
New appearance, sienna theme
New appearance, high contrast theme
SRVControls are Unicode in all versions of Delphi.
Since this update, all SRVControls support High DPI display modes. They support per monitor DPI awareness in new versions of Delphi.
Since this update, all SRVControls work correctly with bi-directional text.
BiDiMode property is published and completely supported.
Edit and memos
In this update, TSRVEdit and TSRVMemo are rewritten completely.
Previously, they were based on the standard edit control; they only changed drawing.
Now, they are written in pascal from scratch.
It gives them the following advantages:
- Unicode in all version of Delphi;
- complete color customization, including selection color;
- scrollbars in memo are supported;
- SRVMemo works faster than the standard memo.
TSRVTabSet has a new property: OppositeTabPosition
. By default, tabs are shown on top (for horizontal tab sets) or on the left side (for vertical tab set). This property allows displaying them below / to the right side.
There are many other tweaks and fixes in SRVControls (too many to list them here).