/*--------------------------------------------------------------------------------------+
|
|     $Source: sdk/example/dialogs.r $
|
|  $Copyright: (c) 2019 Bentley Systems, Incorporated. All rights reserved. $
|
+--------------------------------------------------------------------------------------*/
/*----------------------------------------------------------------------+
|                                                                       |
|                                                                       |
+----------------------------------------------------------------------*/
/*----------------------------------------------------------------------+
|                                                                       |
|   Function -                                                          |
|                                                                       |
|       Basic Dialog Example Resources                                  |
|                                                                       |
+----------------------------------------------------------------------*/
/*----------------------------------------------------------------------+
|                                                                       |
|   Include Files                                                       |
|                                                                       |
+----------------------------------------------------------------------*/
#include <Mstn\MdlApi\dlogbox.r.h>    /* dlog box manager resource constants & structs */
#include <Mstn\MdlApi\dlogids.r.h>    /* MicroStation resource IDs */

#include "dialogs.h"      /* basic dialog box example constants & structs */
#include "dialogstxt.h"   /* basic dialog box static text defines */

/*----------------------------------------------------------------------+
|                                                                       |
|   ARMA File Export Dialog                                             |
|                                                                       |
+----------------------------------------------------------------------*/
DialogBoxRsc DIALOGID_ARMASettings =
    {
    DIALOGATTR_ALWAYSSETSTATE,
    0, 0,
    NOHELP, MHELPTOPIC,
    HOOKDIALOGID_ARMASettings, NOPARENTID,
    TXT_ARMASettings, 
{
BEGIN_VSTACK_LAYOUT (VSTACKLAYOUTID_Main, "")
    BEGIN_HSTACK_LAYOUT(HSTACKLAYOUTID_DialogButtonsInner, "")
        STRETCH(1)
        BEGIN_GRID_LAYOUT(GRIDLAYOUTID_2ColumnsInner, "")
            GRID_ROW(0, "")
                LAYOUT_LABEL_NEXT_RIGHT(10*XC, "")
                {{AUTO_XY, 0, 0}, OptionButton,    OPTIONBUTTONID_ARMAOption, ON, 0, "", ""},
            END_ROW                   
            EMPTY_GRID_ROW(0, 0, "")            
            GRID_ROW(0, "")
                LAYOUT_LABEL_NEXT_RIGHT(0, "")
                {{AUTO_XY,  24*XC, 0}, Text,       TEXTID_DrawingNumber, ON, 0, "", ""},
            END_ROW
            GRID_ROW(0, "")
                LAYOUT_LABEL_NEXT_RIGHT(0, "")
                {{AUTO_XY,  24*XC, 0}, Text,       TEXTID_DrawingTitle, ON, 0, "", ""},
            END_ROW
            GRID_ROW(0, "")
                LAYOUT_LABEL_NEXT_RIGHT(0, "")
                {{AUTO_XY,  24*XC, 0}, Text,       TEXTID_ContractFile, ON, 0, "", ""},
            END_ROW
            GRID_ROW(0, "")
                LAYOUT_LABEL_NEXT_RIGHT(0, "")
                {{AUTO_XY,  24*XC, 0}, Text,       TEXTID_ContractNumber, ON, 0, "", ""},
            END_ROW
            GRID_ROW(0, "")
                LAYOUT_LABEL_NEXT_RIGHT(0, "")
                {{AUTO_XY,  24*XC, 0}, Text,       TEXTID_DeliveryDate, ON, 0, "", ""},
            END_ROW
        END_LAYOUT
        STRETCH(1)
    END_LAYOUT

    BEGIN_HSTACK_LAYOUT(HSTACKLAYOUTID_DialogButtonsInner, "")
        STRETCH(1)
        {{AUTO_XY, BUTTON_LARGEWIDTH, 0},       PushButton,     PUSHBUTTONID_OKNotDefault, ON, 0, "", ""},
        {{AUTO_XY, BUTTON_LARGEWIDTH, 0},       PushButton,     PUSHBUTTONID_Cancel, ON, 0, "", ""},
    END_LAYOUT
END_LAYOUT
}
    };


DItem_TextRsc TEXTID_DrawingNumber =
    {
    NOCMD, MCMD, NOSYNONYM, NOHELP, MHELPTOPIC, NOHOOK, NOARG, 255, "%s", "%s",
    "", "", NOMASK, TEXT_NOCONCAT, TXT_DrawingNumber, ""
    };

DItem_TextRsc TEXTID_DrawingTitle =
    {
    NOCMD, MCMD, NOSYNONYM, NOHELP, MHELPTOPIC, NOHOOK, NOARG, 255, "%s", "%s",
    "", "", NOMASK, TEXT_NOCONCAT, TXT_DrawingTitle, ""
    };

DItem_TextRsc TEXTID_ContractFile =
    {
    NOCMD, MCMD, NOSYNONYM, NOHELP, MHELPTOPIC, NOHOOK, NOARG, 255, "%s", "%s",
    "", "", NOMASK, TEXT_NOCONCAT, TXT_ContractFile, ""
    };

DItem_TextRsc TEXTID_ContractNumber =
    {
    NOCMD, MCMD, NOSYNONYM, NOHELP, MHELPTOPIC, NOHOOK, NOARG, 255, "%s", "%s",
    "", "", NOMASK, TEXT_NOCONCAT, TXT_ContractNumber, ""
    };

DItem_TextRsc TEXTID_DeliveryDate =
    {
    NOCMD, MCMD, NOSYNONYM, NOHELP, MHELPTOPIC, NOHOOK, NOARG, 255, "%s", "%s",
    "", "", NOMASK, TEXT_NOCONCAT, TXT_DeliveryDate, ""
    };

DItem_OptionButtonRsc OPTIONBUTTONID_ARMAOption =
    {
    NOSYNONYM,
    NOHELP, MHELPTOPIC,
    NOHOOK, OPTNBTNATTR_NEWSTYLE | NOARG,
    TXT_ARMAOption,
    "",
        {
        {NOTYPE, NOICON, NOCMD, MCMD, 0,    NOMASK, ON, TXT_Option1 },
        {NOTYPE, NOICON, NOCMD, MCMD, 1,    NOMASK, ON, TXT_Option2 },
        }
    }


    //////////////////////////////////////////////////////////////////////////////////////////////////////
    // PierVase 
    //

    DialogBoxRsc DIALOGID_PierVase =
    {
    DIALOGATTR_DEFAULT | DIALOGATTR_ALWAYSSETSTATE,
    0, 0,
    NOHELP, MHELPTOPIC,
    HOOKDIALOGID_PierVase, NOPARENTID,
    TXT_PierVase, 
{
BEGIN_VSTACK_LAYOUT (VSTACKLAYOUTID_Main, "")
    BEGIN_HSTACK_LAYOUT(HSTACKLAYOUTID_DialogButtonsInner, "")
        STRETCH(1)
        BEGIN_GRID_LAYOUT(GRIDLAYOUTID_2ColumnsInner, "")
            GRID_ROW(0, "")
                LAYOUT_LABEL_NEXT_RIGHT(0, "")
                {{AUTO_XY,  24*XC, 0}, Text,       TEXTID_PierVase_Height, ON, 0, "", ""},
            END_ROW
            GRID_ROW(0, "")
                LAYOUT_LABEL_NEXT_RIGHT(0, "")
                {{AUTO_XY,  24*XC, 0}, Text,       TEXTID_PierVase_Depth, ON, 0, "", ""},
            END_ROW
            GRID_ROW(0, "")
                LAYOUT_LABEL_NEXT_RIGHT(0, "")
                {{AUTO_XY,  24*XC, 0}, Text,       TEXTID_PierVase_CapWidth, ON, 0, "", ""},
            END_ROW
            GRID_ROW(0, "")
                LAYOUT_LABEL_NEXT_RIGHT(0, "")
                {{AUTO_XY,  24*XC, 0}, Text,       TEXTID_PierVase_CapHeight, ON, 0, "", ""},
            END_ROW
            GRID_ROW(0, "")
                LAYOUT_LABEL_NEXT_RIGHT(0, "")
                {{AUTO_XY,  24*XC, 0}, Text,       TEXTID_PierVase_FootWidth, ON, 0, "", ""},
            END_ROW
            GRID_ROW(0, "")
                LAYOUT_LABEL_NEXT_RIGHT(0, "")
                {{AUTO_XY,  24*XC, 0}, Text,       TEXTID_PierVase_FootHeight, ON, 0, "", ""},
            END_ROW
            EMPTY_GRID_ROW(0, 0, "")            
            GRID_ROW(0, "")
                LAYOUT_LABEL_NEXT_RIGHT(0, "")
                {{AUTO_XY,  24*XC, 0}, Text,       TEXTID_PierVase_RebarCover, ON, 0, "", ""},
            END_ROW
            GRID_ROW(0, "")
                LAYOUT_LABEL_NEXT_RIGHT(0, "")
                {{AUTO_XY,  24*XC, 0}, Text,       TEXTID_PierVase_ShearRebarSize, ON, 0, "", ""},
            END_ROW
            GRID_ROW(0, "")
                LAYOUT_LABEL_NEXT_RIGHT(0, "")
                {{AUTO_XY,  24*XC, 0}, Text,       TEXTID_PierVase_ShearRebarSpacing, ON, 0, "", ""},
            END_ROW
            GRID_ROW(0, "")
                LAYOUT_LABEL_NEXT_RIGHT(0, "")
                {{AUTO_XY,  24*XC, 0}, Text,       TEXTID_PierVase_LongitudinalRebarSize, ON, 0, "", ""},
            END_ROW
            GRID_ROW(0, "")
                LAYOUT_LABEL_NEXT_RIGHT(0, "")
                {{AUTO_XY,  24*XC, 0}, Text,       TEXTID_PierVase_LongitudinalRebarSpacing, ON, 0, "", ""},
            END_ROW
            GRID_ROW(0, "")
                LAYOUT_LABEL_NEXT_RIGHT(10*XC, "")
                {{AUTO_XY, 0, 0}, OptionButton,    OPTIONBUTTONID_PierVase_RebarTieType, ON, 0, "", ""},
            END_ROW                   
        END_LAYOUT
        STRETCH(1)
    END_LAYOUT

    BEGIN_HSTACK_LAYOUT(HSTACKLAYOUTID_DialogButtonsInner, "")
        STRETCH(1)
        {{AUTO_XY, BUTTON_LARGEWIDTH, 0},       PushButton,     PUSHBUTTONID_OKNotDefault, ON, 0, "", ""},
        {{AUTO_XY, BUTTON_LARGEWIDTH, 0},       PushButton,     PUSHBUTTONID_Cancel, ON, 0, "", ""},
    END_LAYOUT
END_LAYOUT
}
    };

    DItem_TextRsc TEXTID_PierVase_Height =
    {
    NOCMD, MCMD, NOSYNONYM, NOHELP, MHELPTOPIC, NOHOOK, NOARG, 25, "%s", "%s",
    "", "", NOMASK, NOCONCAT, TXT_PierVase_Height, ""
    };

    DItem_TextRsc TEXTID_PierVase_Depth =
    {
    NOCMD, MCMD, NOSYNONYM, NOHELP, MHELPTOPIC, NOHOOK, NOARG, 25, "%s", "%s",
    "", "", NOMASK, NOCONCAT, TXT_PierVase_Depth, ""
    };

    DItem_TextRsc TEXTID_PierVase_CapHeight =
    {
    NOCMD, MCMD, NOSYNONYM, NOHELP, MHELPTOPIC, NOHOOK, NOARG, 25, "%s", "%s",
    "", "", NOMASK, NOCONCAT, TXT_PierVase_CapHeight, ""
    };

    DItem_TextRsc TEXTID_PierVase_CapWidth =
    {
    NOCMD, MCMD, NOSYNONYM, NOHELP, MHELPTOPIC, NOHOOK, NOARG, 25, "%s", "%s",
    "", "", NOMASK, NOCONCAT, TXT_PierVase_CapWidth, ""
    };

    DItem_TextRsc TEXTID_PierVase_FootHeight =
    {
    NOCMD, MCMD, NOSYNONYM, NOHELP, MHELPTOPIC, NOHOOK, NOARG, 25, "%s", "%s",
    "", "", NOMASK, NOCONCAT, TXT_PierVase_FootHeight, ""
    };

    DItem_TextRsc TEXTID_PierVase_FootWidth =
    {
    NOCMD, MCMD, NOSYNONYM, NOHELP, MHELPTOPIC, NOHOOK, NOARG, 25, "%s", "%s",
    "", "", NOMASK, NOCONCAT, TXT_PierVase_FootWidth, ""
    };

    DItem_TextRsc TEXTID_PierVase_ShearRebarSpacing =
    {
    NOCMD, MCMD, NOSYNONYM, NOHELP, MHELPTOPIC, NOHOOK, NOARG, 25, "%s", "%s",
    "", "", NOMASK, NOCONCAT, TXT_PierVase_ShearRebarSpacing, ""
    };

    DItem_TextRsc TEXTID_PierVase_ShearRebarSize =
    {
    NOCMD, MCMD, NOSYNONYM, NOHELP, MHELPTOPIC, NOHOOK, NOARG, 25, "%s", "%s",
    "", "", NOMASK, TEXT_NOCONCAT, TXT_PierVase_ShearRebarSize, ""
    };

    DItem_TextRsc TEXTID_PierVase_LongitudinalRebarSpacing =
    {
    NOCMD, MCMD, NOSYNONYM, NOHELP, MHELPTOPIC, NOHOOK, NOARG, 25, "%s", "%s",
    "", "", NOMASK, NOCONCAT, TXT_PierVase_LongitudinalRebarSpacing, ""
    };

    DItem_TextRsc TEXTID_PierVase_LongitudinalRebarSize =
    {
    NOCMD, MCMD, NOSYNONYM, NOHELP, MHELPTOPIC, NOHOOK, NOARG, 25, "%s", "%s",
    "", "", NOMASK, TEXT_NOCONCAT, TXT_PierVase_LongitudinalRebarSize, ""
    };

    DItem_TextRsc TEXTID_PierVase_RebarCover =
    {
    NOCMD, MCMD, NOSYNONYM, NOHELP, MHELPTOPIC, NOHOOK, NOARG, 25, "%s", "%s",
    "", "", NOMASK, NOCONCAT, TXT_PierVase_RebarCover, ""
    };

DItem_OptionButtonRsc OPTIONBUTTONID_PierVase_RebarTieType =
    {
    NOSYNONYM,
    NOHELP, MHELPTOPIC,
    NOHOOK, OPTNBTNATTR_NEWSTYLE | NOARG,
    TXT_PierVase_RebarTieType,
    "",
        {
        {NOTYPE, NOICON, NOCMD, MCMD, 0,    NOMASK, ON, TXT_PierVase_RebarTieBend },
        {NOTYPE, NOICON, NOCMD, MCMD, 1,    NOMASK, ON, TXT_PierVase_RebarTieCog },
        {NOTYPE, NOICON, NOCMD, MCMD, 2,    NOMASK, ON, TXT_PierVase_RebarTieHook },
        }
    }

