/*
    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 display_number_suite
{
    view dialog(name: "Display Number Suite")
    {
        column()
        {
           edit_number(name: "Raw Byte Value:", characters: 30, bind: @bytes);
           display_number(name: "Formatted Byte Value:", bind: @bytes, format: "#.##", units: [
                            { name: "bytes", format: "#", scale: [ 1, 0 ] },
                            { name: "KB", format: "#.###", scale: [ 1024, 0 ] },
                            { name: "MB", scale: [ 1024 * 1024, 0 ] },
                            { name: "GB", scale: [ 1024 * 1024 * 1024, 0 ]  },
                            { name: "TB", scale: [ 1024 * 1024 * 1024 * 1024, 0 ]  }
                         ]);
        }

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