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

tcomponentqueue

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

Holds a list of tmsecomponent items, automatically removing an item when it is destroyed

Declaration

Source position: mseclasses.pas line 684

type tcomponentqueue = class(tlinkedqueue,iobjectlink)

public

  function findobject();

  function add();

  procedure insert();

  function getfirst;

  function getlast;

  property items []: tmsecomponent; default; [rw]

end;

Inheritance

tcomponentqueue

  

Holds a list of tmsecomponent items, automatically removing an item when it is destroyed

|

tlinkedqueue,iobjectlink

|

tpointerqueue,iobjectlink

|

tpointerlist

|

tnullinterfacedobject

|

TObject,iunknown

Description

Holds a list of tmsecomponent items, automatically removing an item when it is destroyed — useful, for example, to track dynamically created subforms without needing explicit removal code. If maxcount is set, the queue behaves as a ring buffer, and getfirst/getlast then also remove the returned item, so do not use them just to peek at an item. Use findobject to find an item's actual index, rather than storing indexes.


Documentation generated on: 2026-10-03