Name

menubar

Synopsis

LZX: menubar
JavaScript: menubar
Type: Class
Access: public
Topic: Components.Laszlo Components
Declared in: lps/components/lz/menu.lzx

Superclass Chain

node (LzNode) » view (LzView) » basecomponent » menubar

Known Subclasses

Details

Properties (3)

defaultplacement
<attribute name="defaultplacement" type="string" value="mbarcontent" />
public var defaultplacement : String;
height
<attribute name="height" value="20" />
public var height;
the default height is 20 pixels
width
<attribute name="width" value="${immediateparent.width + 1}" />
public var width;
in a window, the menubar's width needs to extend one more pixel past its container ( which has the same width as the content ) so it's default width is immediateparent.width + 1

Methods (1)

openMenu()
<method name="openMenu" args="menuref, openit" />
public function openMenu(menuref : Menu, openit : Boolean);
opens ( or closes ) requested menu and closes any other menus that are currently opened

LZX Synopsis

<class name="menubar" extends=" basecomponent ">
  <attribute name=" defaultplacement " type="string" value="mbarcontent" />
  <attribute name=" height " value="20" />
  <attribute name=" width " value="${immediateparent.width + 1}" />
  <method name=" openMenu " args="menuref, openit" />
</class>

JavaScript Synopsis

public menubar extends  basecomponent  {
  public var defaultplacement  : String;
  public var height ;
  public var width ;
  prototype public function openMenu (menuref : Menu, openit : Boolean);
}