Back Previous Next


Linguist graphics package - add

Syntax:

   add {style} to {textpanel}
   add {menu} to {window}/{popupmenu}
   add {menuitem}/separator to {menu}/{popupmenu}
   add {text} to {combobox}

Keyword handler:

   net.eclecity.linguist.graphics.keyword.GraphicsKAdd.class

Runtime handler(s):

   net.eclecity.linguist.graphics.handler.GraphicsHAdd.class

Function:

The first form adds a style to the list of styles available for use with the textpanel.

The second form adds a menu to a window or a popup menu.

The third form adds a menu item or a separator to a menu or a popup menu. If you add a menu to a menu or popupmenu you get cascading menus.

The final form adds text to a combo box.

Example(s):

   add DefaultStyle to MainPanel
   add FileMenu to MyWindow
   add MenuItem to FileMenu
   add separator to PopupMenu
   add "Some text" to Combo


Back Previous Next