NPIB - Network Programming Interface Builder
Example with more detailed instructions and figures


In this example Builder creates a FORMS window from a FLOW CONTROL network of icons using all possible icons and features presently available. Previously CGI script was used to create the same FORMS window for submitting a batch file to a supercomputer for the Atomistic Simulation Laboratory. With Builder Engineers & Scientists can now create their own custom FORMS window that would create data files that could then be used as batch files or input files to their favorite application programs or C / Fortran programs.
NOTE: Example figures were taken from a SUN Sparc running OpenWindows 3.0. Builder was tested on Windows95, Macintosh, SUN, and SGI workstations. WARNING: similar but different FORMS formats appear for Windows95 and Macintosh.
  1. Press "Run Builder" (creates FLOW CONTROL & FORM windows)



  2. Press "PM" (creates Pulldown <<Menu>> modules in both windows)



  3. Drag the FLOW CONTROL Input Icon into position.

  4. Drag the <<Menu>> Place Holder into position

    and select Name on the pull down menu and type Choose Color

    followed by <cr> which will assign Choose Color as the Icon and Place Holder name.

  5. Press "To" (creates Output Text Field modules in both windows)



  6. Drag the new Icon and Place Holder into an appropriate position and name this new <<Text Field>> module "Color".



  7. Press "W" (creates wires connecting Icons in the FLOW CONTROL window)
    1. Click on the Input Icon.
    2. Click on the Output Icon.

  8. Press "m" or "mode" (change mode in FORM window: )

  9. Choose a color from the pull down menu box and the color choosen from the pull down menu will "flow" into the Output box.

    Next we add an Input <<Text Field >> and <<Button>> icons by pressing on the "Ti" and "B" buttons at the top of the FLOW CONTROL window. Reposition, rename, and connect these modules to the Color module as was done before. Here we named the <<Button>> as "All Colors"" and the Input <<Text Field >> as "Other Color".



    One last step, we must insert a label for the <<Button>> module. This is done by holding the shift key down while pressing the mouse button on the <<Button>> module and then selecting "Text" from the pull down menu. In the text window type "White" as the text name for the "All Colors" <<Button>> module followed by a <cr>. Finally select a mode change by selecting the "M" button and the FORMS window is complete.

    Now you can use the FORMS window as originally designed. Select from any of the three colors (Red, Green, Blue) form the "Choose Color" module, or enter any other color in the "Other Color" module, or select the color white for the "All Colors" button.


Revised October 22, 1997
Ron Kriz
http://www.jwave.vt.edu/npib/builder1.0/instructions/detailed_instruct.html