ImageEn, unit iesettings

TIEImageEnGlobalSettings.EnableTheming

TIEImageEnGlobalSettings.EnableTheming


Declaration


property EnableTheming: boolean;


Description


When enabled, VCL Themed colors will be used for ImageEn visual controls.

Affected TImageEnView/TImageEnVect Properties
- Background
- GradientEndColor
- RulerParams.Color
- RulerParams.Font.Color
- RulerParams.GripColorDefault
- RulerParams.GripPenColor
- RulerParams.MeasureColor

Affected TImageEnMView/TImageEnFolderMView/TImageEnLayerMView Properties
- Background
- GradientEndColor
- TopTextFont.Color
- InfoTextFont.Color
- BottomTextFont.Color
- TextBackgroundColor
- SelectedFontColor
- SelectionColor
- ThumbnailsBackground
- ThumbnailsBackgroundSelected
- ThumbnailsBorderColor

Other Affected Properties
- PreviewImageBackgroundColor
- RulerColor
- GripColorDefault
- GripPenColor

Note: Only system colors will be themed, e.g. clWindow, clWindowText, clBtnFace, clGrayText, etc. Controls with fixed colors such as clBlue, clBlack, $$00FCFCFC will not be themed.

Default: False (specified colors are used)


Demo


  Demos\Other\ImageEn_Theming\VclStylesDemo.dpr



Examples


// Enable VCL theme colors in ImageEn
IEGlobalSettings().EnableTheming := True;
ImageEnView1.Update();
ImageEnMView1.Update();

// Compare the following...
IEGlobalSettings().EnableTheming := True;
ImageEnView1.Background := clBtnFace; // Background will be a themed color
ImageEnView1.Background := clBlue; // Background will be blue