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

tenumedit

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

Integer edit which shows a text chosen from a drop-down list

Declaration

Source position: msedataedits.pas line 1092

type tenumedit = class(tcustomenumedit)

published

  property dropdown: tenumdropdowncontroller;

  property valueoffset: Integer;

  property value: Integer;

  property valuedefault: Integer;

  property valueempty: Integer;

  property base: numbasety;

  property bitcount: Integer;

  property valuemin: Integer;

  property valuemax: Integer;

  property onsetvalue: setintegereventty;

  property ifilink: tifienumlinkcomp;

  property onbeforedropdown: notifyeventty;

  property onafterclosedropdown: notifyeventty;

  property oninit: enumediteventty;

end;

Inheritance

tenumedit

  

Integer edit which shows a text chosen from a drop-down list

|

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

Integer edit which shows a text chosen from a drop-down list: the rows are defined in dropdown.cols, and value is the integer associated with the selected row (-1 = none, see valueempty).

By default, the value is the row index plus valueoffset: with twelve rows 'January'..'December', valueoffset = 1 gives the values 1..12. For arbitrary values, fill the public enums array (one value per row) in oninit:

procedure tmainfo.enumeditinit(const sender: tcustomenumedit);
begin
 setlength(sender.enums,3);
 sender.enums[0]:= 10;
 sender.enums[1]:= 20;
 sender.enums[2]:= 50;
end;

See also tenumtypeedit for the values of a Pascal enumeration type.


Documentation generated on: 2026-10-03