IHYMenuItem
From RemObjects Software
This is a Hydra Architecture entry
Feel free to add your notes to this topic below.
Overview
The IHYMenuItem interface defines the interface that controllers must support for all menu items generated by the user.
Objects implementing this interface are returned by the events of the THYPluginControlsRepository and can be used by the plugin to access the user interface items in the host form.
File
uHYIntf
Declaration
IHYMenuItem = interface(IHYControl);
Hierarchy
- IInterface
- IHYObjectReference
- IHYControl
- IHYMenuItem
- IHYControl
- IHYObjectReference
Properties
| | | |
|---|---|---|
| Count |
Returns the number of sub items that this IHYMenuItem owns. | |
| Items |
Returns the list of sub IHYMenuItem owned by the object. | |
| Action | Inherited from IHYControl
Used to read or set the action associated with the control. | |
| Caption | Inherited from IHYControl
Used to read or set the caption associated with the control. | |
| Index | Inherited from IHYControl
Used to read or set the index associated with the control. | |
| Properties | Inherited from IHYObjectReference
Used to set the value of the published properties of the referenced TObject. This function uses the RTTI functions SetPropValue and GetPropValue internally. | |
| RefObject | Inherited from IHYObjectReference
Returns a pointer to the referenced TObject. |
Methods
| | |
|---|---|
| AddMenu | Used to add a submenu at the end of the list of sub menu items owned by the object. |
| AddSeparator | Used to add a separator to the list of menu items. |
| Delete | Allows for the deletion of a menu item at the index specified by the Index parameter. |
| FindMenuItem | Returns the menu item that has the caption indicated by the aCaption parameter.
If no such item is found, the method will return NIL. |
| InsertMenu | |
| InsertSeparator | |
| MenuItemByCaption | Returns the menu item that has the caption indicated by the aCaption parameter.
If no such item is found, the method will raise an exception. |
| DestroyObject | Inherited from IHYObjectReference
Used to destroy the referenced TObject. It is not normally necessary to call this method directly. |
See Also
Lists — Glossary — Features — How To — Components — Tools — Samples — Articles — Architecture — Issues
Categories: Text | Hydra | Architecture | Interface | Delphi
