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

tdropdownlistedit

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

Component for editing a value chosen from a drop-down list

Declaration

Source position: msedataedits.pas line 636

type tdropdownlistedit = class(tcustomdropdownlistedit)

published

  property maxlength: Integer;

  property value: msestring;

  property valuedefault: msestring;

  property onsetvalue: setstringeventty;

  property ifilink: tifidropdownlistlinkcomp;

  property dropdown: tdropdownlistcontroller;

  property onbeforedropdown: notifyeventty;

  property onafterclosedropdown: notifyeventty;

end;

Inheritance

tdropdownlistedit

  

Component for editing a value chosen from a drop-down list

|

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 value chosen from a drop-down list. The list can be filled, for example in the form's oncreate event, using the dropdown property; the selected value is available through the value property.

uses
  main_mfm;

procedure tmainfo.mainfo_oncreate(const sender: TObject);
const
  a: array[0..2] of msestring = ('un', 'deux', 'trois');
begin
  edit1.dropdown.cols[0].asarray := a;
  edit1.dropdown.itemindex := 0;
end;

procedure tmainfo.button_onexecute(const sender: TObject);
begin
  showmessage(edit1.value);
end;

Documentation generated on: 2026-10-03