|Top Previous Next|
Defines behavior of RichView when drawn in 256-color mode display.
property DoInPaletteMode: TRVPaletteAction.
Note: TRVPaletteAction is declared in RVScroll unit.
Please always set DoInPaletteMode to rvpaDoNothing under Delphi 2 and C++Builder 1.Palette mode improvements are not available for these versions.
This property affects only displaying in-256 color mode and does nothing in highcolor and truecolor modes.
Windows XP does not support 256-color mode.
1.If you have other controls on form which also change palette (such as TImage, or buttons with multicolor glyphs), you can not achieve required results.
2.If you use multicolor hotspots or bullets in RichView, it's recommended to have two sets of them: 16color for 16- and 256-color modes, and multicolor for others.
3.RichView can't change palette of bitmaps inside metafiles; do not use TMetafile containing multicolor bitmaps in 256-color mode.
4.RichView can't update information about palette when user switches color resolution without restarting Windows. Please do it yourself, as it's shown below.
5.If you create RichViews, RichViewEdits, RVPrintPreviews, RVPrints at run-time (such as MyRichView := TRichView.Create(Self)), you need to call UpdatePaletteInfo methods of such controls after you have created them.
In interface section:
procedure WMDisplayChange(var Message: TWMDisplayChange); message WM_DISPLAYCHANGE;
procedure TMyForm.WMDisplayChange(var Message: TWMDisplayChange);
// Call UpdatePaletteInfo methods of all your
// RichViews, RichViewEdits, and RVPrints (if you use print preview)
// for example:
(or rvpaDoNothing in Delphi 2 and C++Builder 1)
RichView uses the palette displayed below (the same as Microsoft Internet Explorer uses):
If you need to use your own palette, let me know, I will create a public property for it. Now you can override the protected dynamic method GenerateLogPalette (introduced in TRVScroller).
See also methods:
See also methods of TRVPrint:
TRichView © trichview.com