Menus.NewLine
From RAD Studio VCL Reference
Contents |
Delphi Information
From Menus.pas
function NewLine(): TMenuItem;
Unit: Menus
Type: function
Visibility: public
C++ Information
From Menus.hpp
Menus::TMenuItem * __fastcall NewLine(void);
Unit: Menus
Type: function
Description
Creates a menu item for a separator.
Call NewLine to create a separator that divides the items in a menu into logical groups. Once the menu item for the separator has been created using NewLine, it can be added to a menu using the target parent's Add method. If the entire menu is being created dynamically at runtime, the new menu item can be added to an array that is passed as a parameter to the NewMenu, NewPopupMenu, or NewSubMenu function.
Warning: The item returned by NewLine does not have an owner. You are responsible for freeing its memory when it is no longer needed. The Delete and Remove methods of TMenuItem do not free memory.