Class tenumtypeedit

Unit

Declaration

type tenumtypeedit = class(tcustomenumedit)

Description

Component for editing a variable of an enumeration-defined type.

The list of possible values can be filled in the oninit event, using the typeinfopo property, as in the following example.

uses
  main_mfm,
  typinfo;

type
  TFruit = (Apple, Apricot, Cherry, Pear);

procedure tmainfo.editinit(const sender: tenumtypeedit);
begin
  sender.typeinfopo := PTypeInfo(TypeInfo(TFruit));
end;

image

Hierarchy

Overview

Properties

Public property typeinfopo: ptypeinfo read ftypeinfopo write settypeinfopo;
Published property value;
Published property valuedefault;
Published property base;
Published property bitcount;
Published property valuemin;
Published property valuemax;
Published property onsetvalue;
Published property ifilink;
Published property dropdown;
Published property onbeforedropdown;
Published property onafterclosedropdown;
Published property oninit: enumtypeediteventty read getoninit write setoninit;

Description

Properties

Public property typeinfopo: ptypeinfo read ftypeinfopo write settypeinfopo;
 
Published property value;
 
Published property valuedefault;
 
Published property base;
 
Published property bitcount;
 
Published property valuemin;
 
Published property valuemax;
 
Published property onsetvalue;
 
Published property ifilink;
 
Published property dropdown;
 
Published property onbeforedropdown;
 
Published property onafterclosedropdown;
 
Published property oninit: enumtypeediteventty read getoninit write setoninit;
 

Generated by PasDoc 0.16.0.