(form "20400" (size 56 19)
    (help "20400_TIP_0")
    (heading "BASIC STATISTICS"
    )
    (label
        (position  7  2)
        (text "Location"
        )
    )
    (field "location" 
        (position 7 3) 
        (display_length 32) 
        (input allowed)
        (translate lower)
        (null allowed)
        (max_length "FIO_MAX_LOCATION_LENGTH")
        (file 
            (link "id") 
            (extension "*.str")
        )
        (help "20400_TIP_1")
    )

    (label 
        (position 22 2) 
        (text "Id range"
        )
    )
    (field "id" 
        (position 22 3) 
        (display_length 32) 
        (input allowed)
        (translate upper) 
        (format range) 
        (null disallowed) 
        (max_length "MAX_RNG_LENGTH")
        (default "1") 
    )

    (label 
        (position  37 2) 
        (text "String range"
        )
    )
    (field "str" 
        (position 37 3) 
        (display_length 32) 
        (input allowed)
        (format range) 
        (max_length "MAX_RNG_LENGTH") 
        (default "1")
    )

    (label 
        (position 2 5) 
        (text "Description Fields for Data"
        )
    )
    (scroll_block "dfields"
        (position 2 7)
        (size 50 3)
        (extra 0 1)
        (scroll_size 50 3)
        (repeat interactive
            (grow 0 1)
            (instances 1
                (min 1)
                (max 99)
            )
        )
        (top
            (label
                (position 2 0)
                (text "D Field"
                )
            )
            (label
                (position 11 0)
                (text "Name"
                )
            )
            (label
                (position 26 0)
                (text "Min. value"
                )
            )
            (label
                (position 39 0)
                (text "Max. value"
                )
            )
        )
        (main
            (field "dfield"
                (position 1 0)
                (display_length 4)
                (max_length 30)
                (input allowed)
                (format string_field)
                (value_in
                    "D1" "D2" "D3" "D4" "D5" "D6" "D7" "D8" "D9" "D10"
                    "D11" "D12" "D13" "D14" "D15" "D16" "D17" "D18" "D19" "D20"
                    "D21" "D22" "D23" "D24" "D25" "D26" "D27" "D28" "D29" "D30"
                    "D31" "D32" "D33" "D34" "D35" "D36" "D37" "D38" "D39" "D40"
                    "D41" "D42" "D43" "D44" "D45" "D46" "D47" "D48" "D49" "D50"
                    "D51" "D52" "D53" "D54" "D55" "D56" "D57" "D58" "D59" "D60"
                    "D61" "D62" "D63" "D64" "D65" "D66" "D67" "D68" "D69" "D70"
                    "D71" "D72" "D73" "D74" "D75" "D76" "D77" "D78" "D79" "D80"
                    "D81" "D82" "D83" "D84" "D85" "D86" "D87" "D88" "D89" "D90"
                    "D91" "D92" "D93" "D94" "D95" "D96" "D97" "D98" "D99" "D100"
                )
                (default "D1")
                (help "20270_TIP_4")
            )
            (field "label"
                (position 10 0)
                (display_length 12)
                (max_length 30)
                (input allowed)
                (auto_next off)
                (help "20400_TIP_3")
            )
            (field "min"
                (position 25 0)
                (display_length 10)
                (input allowed)
                (format real_8)
                (help "20400_TIP_4")
            )

            (field "max"
                (position 38 0)
                (display_length 10)
                (input allowed)
                (format real_8)
                (help "20400_TIP_5")
            )
        )
    )
    (label
        (position 2 11)
        (text "Minimum coordinates"
        )
    )

    (label 
        (position 5 12) 
        (text "X"
        )
    )
    (field "min0"
        (position 7 12)
        (display_length 10)
        (input allowed)
        (format real_8)
        (help "20400_TIP_6")
    )
    (label 
        (position 20 12) 
        (text "Y"
        )
    )
    (field "min1"
        (position 22 12)
        (display_length 10)
        (input allowed)
        (format real_8)
        (help "20400_TIP_7")
    )

    (label 
        (position 35 12) 
        (text "Z"
        )
    )
    (field "min2"
        (position 37 12)
        (display_length 10)
        (input allowed)
        (format real_8)
        (help "20400_TIP_8")
    )

    (label
        (position 2 13)
        (text "Maximum coordinates"
        )
    )

    (label 
        (position 5 14) 
        (text "X"
        )
    )
    (field "max0"
        (position 7 14)
        (display_length 10)
        (input allowed)
        (format real_8)
        (help "20400_TIP_9")
    )
    (label 
        (position 20 14) 
        (text "Y"
        )
    )
    (field "max1"
        (position 22 14)
        (display_length 10)
        (input allowed)
        (format real_8)
        (help "20400_TIP_10")
    )
    (label
        (position 35 14)
        (text "Z"
        )
    )  
    (field "max2"
        (position 37 14)
        (display_length 10)
        (input allowed)
        (format real_8)
    )
    (label
        (position 2 16)
        (text "Histogram X-Axis as bin size or bin width  "
        )
    )

    (field "binNum_or_Width"
        (position 50 16)
        (display_length 11)
        (input allowed)
        (null disallowed)
        (value_in "BIN_NUMBER" "WIDTH"
        )
        (default "WIDTH")
        (translate upper)
    )

    (field "number_bins"
        (position 2 19)
        (display_length 10)
        (input allowed)
        (format real_8)
        (default "20")
        (help "20400_TIP_11")
    )
    (field "bin_width"
        (position 2 19)
        (display_length 10)
        (input allowed)
        (format real_8)
        (default "2")
    )

    (field "includeCoords"
        (position 2 19)
        (display_length 10)
        (input allowed)
    )


    (label
        (position 2 25)
        (text "Treat negative values as"
        )
    )
    (field "negative"
        (position 26 25)
        (display_length 11)
        (input allowed)
        (null disallowed)
        (value_in "ZEROES" "UNDEFINED" "NEGATIVES"
        )
        (default "NEGATIVES")
        (translate upper)
        (help "20400_TIP_12")
    )

    (default_buttons)
)
