Previous Next        Current Page: NeXtMidas Training / Macros - Part 2 (Graphics) / Intro to Graphics / AWT / Intro to PANEL
back
Start Here   
Background   
Common Midas Concepts   
Getting Started - Part 1   
Getting Started - Part 2   
Working with Files   
Option Trees   
Macros - Part 1 (Basics)   
Macros - Part 2 (Graphics)   
   - Intro to Graphics   
      - Widget Toolkits   
      - AWT   
         - Intro to PANEL   
         - Intro to GCONTROL   
      - Swing   
         - LOOKANDFEEL   
         - LOOKANDFEEL (ctd.)   
   + GControls   
   + Lab 1 - Macro Graphics   
   + Plotting and Listing   
   + Panel Setup   
   + Lab 2 - Macro Graphics   
   + Conclusion   
   + Lab 3 - Macro Graphics   
NetBeans - Part 1 (Setup)   
NetBeans - Part 2 (GUIs)   
NetBeans - Part 3 (Profiler)   
Eclipse - Part 1 (Setup)   
Eclipse - Part 2 (GUIs)   
Primitives   
WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • 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
        

back