[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'msedataedits' (#msegui)

tenumtypeedit.oninit

Event handler for when the TEnumTypeEdit list is initialized.

Declaration

Source position: msedataedits.pas line 1094

published property tenumtypeedit.oninit : enumtypeediteventty
  read getoninit
  write setoninit;

Description

Event handler for when the TEnumTypeEdit list is initialized..

Note: You must use the TypInfo unit.

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: 2021-05-13