Class TMenuArgument

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TMenuArgument = class(TMenuAccessory)

Description

This is TMenuAccessory that will just display additional text (using some different color than Menu.CurrentItemColor) after the menu item. The intention is that the Value will be changeable by the user (while the basic item text remains constant). For example Value may describe "on" / "off" state of something, the name of some key currently assigned to some function etc.

Hierarchy

Overview

Methods

Public constructor Create(const AMaximumValueWidth: Integer);
Public class function TextWidth(const Text: string): Integer;
Public function GetWidth: Integer; override;
Public procedure Draw(const Rectangle: TRectangle); override;

Properties

Public property Value: string read FValue write FValue;
Public property MaximumValueWidth: Integer read FMaximumValueWidth write FMaximumValueWidth;

Description

Methods

Public constructor Create(const AMaximumValueWidth: Integer);
 
Public class function TextWidth(const Text: string): Integer;

Calculate text width using font used by TMenuArgument.

Public function GetWidth: Integer; override;
 
Public procedure Draw(const Rectangle: TRectangle); override;
 

Properties

Public property Value: string read FValue write FValue;
 
Public property MaximumValueWidth: Integer read FMaximumValueWidth write FMaximumValueWidth;
 

Generated by PasDoc 0.14.0.