TIWMenu

TIWMenu

The TIWMenu is the control the developer uses to show a menu in the IW Form. The control transforms a VCL TMainMenu in its representation in HTML/JavaScript to be shown in a IW Form.

TIWMenu = class(TIWCustomControl)

Properties

property AttachedMenu: TMainMenu

Use this property to link the control to the TMainMenu to be shown in the IW Form.

property ItemSpacing: TIWSpaceItems;

Use this property to select how the menu items are spaced.

TIWSpaceItems:

  • itsNone: the menu items are rendered with no space among them
  • itsEvenlySpaced: the menu items are rendered evenly spaced

property MainMenuStyle: TIWMenuStyle;

Use this property to configure the appearance fo the menu items.

property SubMenuStyle: TIWMenuStyle;

Use this property to configure the appearance fo the submenu items.

property SubMenuCss: string;

Use this property to inform the CSS style to be used when rendering the submenus.

property TimeOut: integer;

Use this property to inform for how long the submenu will be shown if the user does not select an option

Events

The TIWMenu has no events and you need to use the OnClick events of the Menu items of the TMainMenu. IntraWeb will generate the corresponding events for the menu when it is rendered on the IW Form