[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Forms' (#lcl)

TCustomForm.AlphaBlendValue

The translucence level for the form (0=transparent, 255=opaque).

Declaration

Source position: forms.pp line 774

public property TCustomForm.AlphaBlendValue : Byte
  read FAlphaBlendValue
  write SetAlphaBlendValue;

Description

AlphaBlendValue is a Byte property which indicates the level of translucency for the form when AlphaBlend is set to True. AlphaBlendValue must be in the range 0..255 (for the Byte data type), where 0 represents 100% transparency and 255 is for full opacity.

Changing the value for the property causes the widgetset class to be notified of the change in the property value at run-time when a handle has been allocated for the form.

Set AlphaBlend to True to enable translucency for the form.

AlphaBlend and AlphaBlendValue are used in the implementation of the InitializeWnd method, and passed as arguments to methods in the widgetset class when either of the values are changed.

Remark: AlphaBlend and AlphaBlendValue require support from both the Desktop Environment (DE) and the hardware for the system; it may not work on all hardware, or platform / operating system combinations supported as Lazarus targets.

See also

TCustomForm.AlphaBlend

  

Allows the form to be drawn with translucency.

TCustomForm.InitializeWnd

  

Initializes the widget, also for AlphaBlend and AllowDropFiles.


Version 3.2 Generated 2024-02-25 Home