Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

XG.3D.GUI-ADD-MENU

SYNTAX

(XG.3D.GUI-ADD-MENU
  [ :frustum-material   <xmtl>   ]
  [ :field-material     <xmtl>   ]
  [ :text-material      <xmtl>   ]
  [ :lights             <xmtl>   ]
  [ :viewport-spot-y    <flonum> ]

  [ :CHOICES            <list-of-strings> ]
  [ :LABEL              <string>    ]
  [ :UPCLICK-HOOK       <hookfn(s)> ]
  [ :choice             <fixnum>    ]
  [ :max-visible-choices<fixnum>    ]
  [ :label-font         <fixnum>    ]
  [ :choice-font        <fixnum>    ]
  [ :change-hook        <hookfn(s)> ]
  [ :downclick-hook     <hookfn(s)> ]
  [ :drag-hook          <hookfn(s)> ]
  [ :vertical-margin    <flonum> ]
  [ :horizontal-margin  <flonum> ]
  [ :frustum-depth      <flonum> ]
  [ :choice-depth       <flonum> ]
  [ :updown-depth       <flonum> ]
  [ :label-depth        <flonum> ]
  [ :choice-height      <flonum> ]
  [ :updown-height      <flonum> ]
  [ :label-height       <flonum> ]
)

DESCRIPTION

This call adds a multiple-choice selection widget to the current control panel. It simply uses the second set of parameters to construct an instance of class-menu, then calls xg.3d.gui-add-widget with the first set of parameters.

The syntax given is perhaps unduly intimidating -- :CHOICES, :LABEL and :UPCLICK-HOOK will be the only parameters needed on most calls.

This call returns the menu widget created, although you usually don't need the return value.


Go to the first, previous, next, last section, table of contents.