Skip to main content

TdxVisualRefinements.ApplyLightStyle(Boolean) Method

Applies Light Style to all DevExpress controls that support it.

Declaration

class procedure ApplyLightStyle(AUsePaddingForStandaloneEditors: Boolean = False); static;

Parameters

Name Type Description
AUsePaddingForStandaloneEditors Boolean

Optional. This parameter specifies the UsePaddingsForStandaloneEditors class property value:

  • If True, the procedure applies extra cell paddings to standalone DevExpress editors in addition to the same paddings applied to in-place editors in container controls.
  • If False, the procedure applies extra paddings only to in-place editors.”

Remarks

The Light Style rendering mode allows you to display all supported[1] controls without double or thick borders, extra outlines, and other visual noise. Light Style enables extra cell and header paddings, as well as lightweight borders in a control.

VCL Express Library: Light Style in Data Grid

Code Example

The following image demonstrates a Data Grid control when Light Style is disabled:

VCL Express Library: Disabled Light Style

The code example below enables Light Style and applies extra paddings to standalone editors.

uses
  Forms,
  cxLookAndFeels,  // Adds the cxLookAndFeels unit to use the TdxVisualRefinements class
// ...
begin
  TdxVisualRefinements.ApplyLightStyle(True);
  Application.Initialize;
  Application.MainFormOnTaskbar := True;
  Application.CreateForm(TMyForm, MyForm);
  Application.Run;
end.

When Light Style is in effect, content in cells and headers becomes easier to read.

VCL Express Library: Light Style is Enabled

Tip

You can call the Reset procedure to disable all Light Style effects.

Footnotes
  1. Only the Data Grid supports Light Style in the current version.

See Also