Ultra Light Client Guide and Reference
There are two ways to create new menus: select the menu icon from the
ULC palette and:
- drop it onto an existing menu or menubar. This creates a new entry
in the drop target, and new menu on the canvas, with a link in place that
connects the two or
- drop it onto the canvas. This creates a new menu without any
connections. Then connect the menu attribute of the holding menu to
self of the submenu.
Existing menus cannot be connected using drag & drop.
- Note:
- a connection between a menu and its submenu must always begin with the
menu->menu attribute, and end with self of the submenu.
Creating the connection in reverse order results in an event-to-action
connection due to the internal workings of VisualAge. Such a connection
is not possible, because UlcWidgets do not support the event
#self. ULC code generation does not generate for such
impossible event-to-action connection.
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]