Current Page: NeXtMidas Training Macros - Part 2 (Graphics) Intro to Graphics AWT Intro to PANEL
- - | Introduction to the `PANEL` Command: The `PANEL` command is used to bring up a generic "panel" to which controls and other graphical primitives can be attached. The panel is divided up into several sections. The left section is the Controls Section. This is where all of the controls will be put (by default). The rest of the panel is split up into a number of Panes the number and size of which are configurable. These panes can hold any graphical primitives such as `PLOT` and `LIST2`.
    Click image for larger view.
  - - Since `PANEL` will be running alongside other primitives, it will need to be in a `PIPE` section. Typically `PANEL` will be on the first line inside the pipe section.
          startmacro
            pipe on
              panel
              ...
            pipe off
          endmacro

          procedure processMessage m:msg
            say "Got message name=^msg.name info=^msg.info data=^msg.data"
          return