Unit 'MUIClass.List' Package
[Overview][Types][Classes][Index] [#MUIClass]

TMUIList.InsertSingle

Insert one new entry into a list.

Declaration

Source position: MUIClass.List.pas line 94

public procedure TMUIList.InsertSingle(

  Entry: PChar;

  Pos: Integer

);

Arguments

Entry

  

Item to insert.

Pos

  

New entry will be added in front of this entry.

Description

Using Insert() has caused some confusion since it takes an array to items instead a single item. To insert single items, InsertSingle is the better choice.

When the list has a OnConstruct Event connected, the given pointer won't be inserted directly but instead passed through to the construct hook.

Special Position Values:

MUIV_List_Insert_Top
Insert as first entry.
MUIV_List_Insert_Active
Insert in front of the active entry.
MUIV_List_Insert_Sorted
Insert sorted.
MUIV_List_Insert_Bottom
Insert as last entry.

Documentation generated on: 2024-11-24