Unit 'msedataedits' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#msegui]

tenumtypeedit

[Properties (by Name)] [Methods (by Name)]

Component for editing a variable of an enumeration-defined type

Declaration

Source position: msedataedits.pas line 1124

type tenumtypeedit = class(tcustomenumedit)

public

  property typeinfopo: ptypeinfo; [rw]

published

  property value: Integer;

  property valuedefault: Integer;

  property base: numbasety;

  property bitcount: Integer;

  property valuemin: Integer;

  property valuemax: Integer;

  property onsetvalue: setintegereventty;

  property ifilink: tifienumlinkcomp;

  property dropdown: tenumdropdowncontroller;

  property onbeforedropdown: notifyeventty;

  property onafterclosedropdown: notifyeventty;

  property oninit: enumtypeediteventty; [rw]

end;

Inheritance

tenumtypeedit

  

Component for editing a variable of an enumeration-defined type

|

tcustomenumedit

|

tcustomenuedit

|

tcustomdropdownlistedit

|

tcustomdropdownedit,idropdownlist,iifidropdownlistdatalink

|

tcustomstringedit,idropdown,iifidropdownlistdatalink

|

tdataedit

|

tcustomdataedit

|

tcustomedit,igridwidget,istatfile,idragcontroller,iassistiveclientgridwidget,iifidatalink

|

tpublishedwidget,iedit

|

tpublishedwidgetnwr

|

tactionpublishedwidgetnwr

|

tactionwidget

|

twidget

|

tactcomponent,iscrollframe,iface,iassistiveclient

|

tmsecomponent,iactivatorclient

  

Extends the FPC tcomponent with object linking facilities and the like; base of every MSEgui component

|

tcomponent,ievent,iificommand,iificlient

|

tpersistent

|

TObject

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;

Documentation generated on: 2026-10-03