Class TCEFLabelButtonComponent

Description
Hierarchy
Fields
Methods
Properties

Unit

Declaration

type TCEFLabelButtonComponent = class(TCEFButtonComponent)

Description

This item has no description.

Hierarchy

Overview

Fields

Protected FLabelButton: ICefLabelButton;
Protected FText: ustring;

Methods

Protected procedure DestroyView; override;
Protected procedure Initialize; override;
Protected function GetInitialized: boolean; override;
Protected function GetAsView: ICefView; override;
Protected function GetAsButton: ICefButton; override;
Protected function GetAsLabelButton: ICefLabelButton; override;
Protected function GetAsMenuButton: ICefMenuButton; virtual;
Protected function GetText: ustring;
Protected function GetImage(button_state: TCefButtonState): ICefImage;
Protected procedure SetText(const text_: ustring);
Protected procedure SetImage(button_state: TCefButtonState; const image: ICefImage);
Protected procedure doCreateCustomView; override;
Public procedure CreateLabelButton(const aText : ustring);
Public procedure SetTextColor(for_state: TCefButtonState; color: TCefColor);
Public procedure SetEnabledTextColors(color: TCefColor);
Public procedure SetFontList(const font_list: ustring);
Public procedure SetHorizontalAlignment(alignment: TCefHorizontalAlignment);
Public procedure SetMinimumSize(const size_: TCefSize);
Public procedure SetMaximumSize(const size_: TCefSize);

Properties

Public property Text : ustring read GetText write SetText;
Public property Image[button_state: TCefButtonState]: ICefImage read GetImage write SetImage;
Public property AsMenuButton : ICefMenuButton read GetAsMenuButton;

Description

Fields

Protected FLabelButton: ICefLabelButton;

This item has no description.

Protected FText: ustring;

This item has no description.

Methods

Protected procedure DestroyView; override;

This item has no description.

Protected procedure Initialize; override;

This item has no description.

Protected function GetInitialized: boolean; override;

This item has no description.

Protected function GetAsView: ICefView; override;

This item has no description.

Protected function GetAsButton: ICefButton; override;

This item has no description.

Protected function GetAsLabelButton: ICefLabelButton; override;

This item has no description.

Protected function GetAsMenuButton: ICefMenuButton; virtual;

This item has no description.

Protected function GetText: ustring;

This item has no description.

Protected function GetImage(button_state: TCefButtonState): ICefImage;

This item has no description.

Protected procedure SetText(const text_: ustring);

This item has no description.

Protected procedure SetImage(button_state: TCefButtonState; const image: ICefImage);

This item has no description.

Protected procedure doCreateCustomView; override;

ICefViewDelegateEvents

Public procedure CreateLabelButton(const aText : ustring);

Create a new LabelButton. |aText| will be shown on the LabelButton and used as the default accessible name.

Public procedure SetTextColor(for_state: TCefButtonState; color: TCefColor);

Sets the text color shown for the specified button |for_state| to |color|.

Public procedure SetEnabledTextColors(color: TCefColor);

Sets the text colors shown for the non-disabled states to |color|.

Public procedure SetFontList(const font_list: ustring);

Sets the font list. The format is "<FONT_FAMILY_LIST>,[STYLES] <SIZE>", where:

- FONT_FAMILY_LIST is a comma-separated list of font family names,
- STYLES is an optional space-separated list of style names (case-sensitive
  "Bold" and "Italic" are supported), and
- SIZE is an integer font size in pixels with the suffix "px".

Here are examples of valid font description strings:

- "Arial, Helvetica, Bold Italic 14px"
- "Arial, 14px"

Public procedure SetHorizontalAlignment(alignment: TCefHorizontalAlignment);

Sets the horizontal alignment; reversed in RTL. Default is CEF_HORIZONTAL_ALIGNMENT_CENTER.

Public procedure SetMinimumSize(const size_: TCefSize);

Reset the minimum size of this LabelButton to |size|.

Public procedure SetMaximumSize(const size_: TCefSize);

Reset the maximum size of this LabelButton to |size|.

Properties

Public property Text : ustring read GetText write SetText;

Gets and sets the text shown on the LabelButton. By default |text| will also be used as the accessible name.

Public property Image[button_state: TCefButtonState]: ICefImage read GetImage write SetImage;

Returns the image shown for |button_state|. If no image exists for that state then the image for CEF_BUTTON_STATE_NORMAL will be returned.

Public property AsMenuButton : ICefMenuButton read GetAsMenuButton;

Returns this LabelButton as a MenuButton or NULL if this is not a MenuButton.


Generated by PasDoc 0.16.0-snapshot.