RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TPopupList.Add Method

Inserts a new popup menu at the end of the list.

Pascal
procedure Add(Popup: TPopupMenu);
C++
__fastcall Add(TPopupMenu Popup);

Do not call the Add method. Popup menus automatically add themselves to the list when they are created. 

Add increments Count and, if necessary, allocates memory by increasing the value of Capacity. When the first popup menu is added to the list, Add creates the hidden window whose handle is available as the Window property. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!