/*
    Copyright 2005-2007 Adobe Systems Incorporated
    Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
    or a copy at http://stlab.adobe.com/licenses.html)
*/

layout preset_test
{
    view dialog(name: "Preset Test", placement: place_row, grow: true)
    {
        column(horizontal: align_fill, child_horizontal: align_fill)
        {
            preset(domain: "Begin", name: "preset_test",
                   bind_additional: @additional_preset_set,
                   bind_output: @result,
                   bind: [
                        [ @string_value, "String" ],
                        [ @number_value, "Number" ]
                     ]);

            group(horizontal: align_fill, child_horizontal: align_fill)
            {
                edit_text(name: "String Value:", bind: @string_value);
                edit_number(name: "Number Value:", bind: @number_value);
            }
        }

        column(child_horizontal: align_fill)
        {
            button(name: "OK", action: @ok, default: true);
            button(name: "Cancel", action: @cancel, cancel: true);
        }
    }
}
