[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Menus' (#lcl)

TMenuItem.Handle

Handle for the menu item allocated in the widgetset class.

Declaration

Source position: menus.pp line 303

public property TMenuItem.Handle : HMENU
  read GetHandle
  write FHandle;

Description

Handle is a HMenu property with the handle for the menu item. Reading the value for the property causes the HandleNeeded method to be called to ensure that a valid handle exists for the menu item. The Handle value is assigned when the CreateHandle method in the widgetset class is called. Handle is set 0 when it has not been allocated using the widgetset class.

See also

TMenuItem.GetHandle

  

Gets the value for the Handle property.

TMenuItem.HandleNeeded

  

Ensures that a valid Handle exists for the menu item.

TMenuItem.CreateHandle

  

Creates the Handle for the menu item.

TMenuItem.RecreateHandle

  

Re-creates the Handle for the menu item.


Version 3.2 Generated 2024-02-25 Home