Sign in Join
FPDoc Onlineexperiment

TMenuItemEnumerator.Create constructor

Member of TMenuItemEnumeratorpublicIn unit Menus

Constructor for the class instance.

Declaration

pascal
constructor Create(AMenuItem: TMenuItem)

Arguments

AMenuItem

Menu item with the child menu items accessed in the class instance.

Description

Create is the constructor for the class instance. Create stores the menu item in the AMenuItem argument to an internal member, and sets the internal position for the enumerator to -1.

Use MoveNext to advance to the first and subsequent child menu items for the enumerator. Use Current to retrieve the TMenuItem instance at the current position for the enumerator.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.