(form "00140" (size 50 20)
  (heading "DRAW A GRID")
  (label (position  2  3) (text "Function"))
  (label (position 14  4) (text "    Grid Line Interval"))
  (label (position 33  4) (text "Label Frequency"))
  (label (position  2  5) (text " Y direction"))
  (label (position  2  6) (text " X direction"))

  (field "zlabel" (position 2 7) (display_length 15) 
    (foreground (user_option "form_foreground"))
    (background) (input disallowed) (default "Z direction")
    (dependency (value "function") == "3D GRID"))
  (field "function" (position 11  3) (display_length 32)
    (foreground (user_option "form_text_highlight"))
    (background) (input disallowed) (browser none)
    (value_in "3D GRID" "2D GRID"))
  (field "ygrid_inc" (position 15  5) (display_length 16) (input allowed)
    (low_bound .01) (high_bound 999999999)
    (translate upper) (format real_8) (null disallowed) (max_length 16)
    )
  (field "ylabel_inc" (position 34  5) (display_length 6) (input allowed)
    (default "1")
    (low_bound 0) (high_bound 999999999)
    (translate upper) (format real_8) (null disallowed) (max_length 4)
    )
  (field "xgrid_inc" (position 15  6) (display_length 16) (input allowed)
    (low_bound .01) (high_bound 999999999)
    (translate upper) (format real_8) (null disallowed) (max_length 16)
    )
  (field "xlabel_inc" (position 34  6) (display_length 6) (input allowed)
    (default "1")
    (low_bound 0) (high_bound 999999999)
    (translate upper) (format real_8) (null disallowed) (max_length 4)
    (help (field "ylabel_inc")))
  (field "zgrid_inc" (position 15  7) (display_length 16) (input allowed)
    (low_bound .01) (high_bound 999999999)
    (translate upper) (format real_8) (null disallowed) (max_length 16)
    (dependency (value "function") == "3D GRID")
    )
  (field "zlabel_inc" (position 34  7) (display_length 6) (input allowed)
    (default "1")
    (low_bound 0) (high_bound 999999999)
    (dependency (value "function") == "3D GRID")
    (translate upper) (format real_8) (null disallowed) (max_length 4)
    (help (field "ylabel_inc")))
  (field "grid" (position 35  8) (display_length  8) (input allowed)
    (dependency (value "function") == "2D GRID")
    (value_in "above" "midpoint" "below" "location")
    (translate lower) (null allowed) (max_length 8))
  (field "grid_plane_value" (position 38  10) (display_length 16) (input allowed)
    (low_bound .01) (high_bound 999999999) 
    (dependency (value "grid") == "location")
    (translate upper) (format real_8) (null disallowed) (max_length 16)
    )
  (field "maximum" (position 40  9) (display_length 13) (max_length 13)
    (input allowed))
  (field "minimum" (position 40  11) (display_length 13) (max_length 13)
    (input allowed))

  (field "planeLabel" (position 39  3) (display_length 32)
    (foreground (user_option "form_text_highlight"))
    (background) (input disallowed) (browser none)
    (value_in "Current view: X Plane" "Current view: Y Plane" "Current view: Z Plane"))

  (default_buttons)
)
