[Properties (by Name)] [Methods (by Name)]
Integer edit which shows a text chosen from a drop-down list
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; |
|
Integer edit which shows a text chosen from a drop-down list |
|
| | | ||
| | | ||
| | | ||
| | | ||
tcustomdropdownedit,idropdownlist,iifidropdownlistdatalink |
||
| | | ||
tcustomstringedit,idropdown,iifidropdownlistdatalink |
||
| | | ||
| | | ||
| | | ||
tcustomedit,igridwidget,istatfile,idragcontroller,iassistiveclientgridwidget,iifidatalink |
||
| | | ||
| | | ||
| | | ||
| | | ||
| | | ||
| | | ||
| | | ||
|
Extends the FPC tcomponent with object linking facilities and the like; base of every MSEgui component |
|
| | | ||
tcomponent,ievent,iificommand,iificlient |
||
| | | ||
| | | ||
TObject |
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.