#include <windows.h>
#include "VORTEX.RH"
MenuInit MENU  DISCARDABLE
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "Save Vortex Image",           IDM_SAVEVORTEXIMAGE
        MENUITEM "Print Vortex Image",          IDM_PRINTVORTEXIMAGE
        MENUITEM SEPARATOR
        MENUITEM "&Exit",                       IDM_EXIT
    END
    POPUP "Image"
    BEGIN
        MENUITEM "Compute Vortex Image",        IDM_COMPUTEVORTEXIMAGE
    END
    POPUP "&Window"
    BEGIN
        MENUITEM "&Tile",                       IDM_TILE
        MENUITEM "&Cascade",                    IDM_CASCADE
        MENUITEM "Close &All",                  IDM_CLOSEALL
    END
    POPUP "&Help"
    BEGIN
        MENUITEM "&About",                      IDM_ABOUT
    END
END

DialogBoxAbout DIALOG 50, 50, 136, 83
STYLE DS_MODALFRAME | DS_3DLOOK | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | 
    WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_DLGMODALFRAME | WS_EX_CONTEXTHELP
CAPTION "About VORTEX"
FONT 8, "MS Sans Serif"
BEGIN
    PUSHBUTTON      "OK",IDOK,43,60,50,14,BS_CENTER
    CTEXT           "VORTEX 1.0",-1,42,13,52,7,NOT WS_GROUP
    CTEXT           "Copyright 2020 Timothy Masters",-1,20,32,96,8,NOT WS_GROUP
END

DialogBoxWaitMessage DIALOG 51, 61, 350, 44
STYLE DS_3DLOOK | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Please wait..."
FONT 10, "MS Sans Serif"
BEGIN
    LTEXT           "Message text here",IDC_WAIT_MESSAGE_MSG,8,6,336,12,NOT WS_GROUP
    LTEXT           "Press ESCape to terminate.",-1,8,25,152,12,NOT WS_GROUP
    CONTROL         "Fraction complete",IDC_WAIT_MESSAGE_PROGRESS,
                    "msctls_progress32",WS_BORDER,108,25,224,11
END

DialogBoxWaitMessageNoAbort DIALOG 51, 61, 287, 24
STYLE DS_3DLOOK | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Please wait..."
FONT 10, "MS Sans Serif"
BEGIN
    CTEXT           "Message text here",IDC_WAIT_MESSAGE_MSG,8,6,272,12,NOT WS_GROUP
END


DialogBoxVortexParams DIALOGEX 0, 0, 202, 176
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Vortex image parameters"
FONT 14, "MS Sans Serif", 0, 0, 0x0
BEGIN
    DEFPUSHBUTTON   "OK",IDOK,143,5,50,14
    PUSHBUTTON      "Cancel",IDCANCEL,143,24,50,14
    RTEXT           "Rows:",-1,30,5,24,8
    EDITTEXT        IDC_IMAGE_ROWS,59,5,34,12,ES_AUTOHSCROLL
    RTEXT           "Cols:",-1,34,25,20,8
    EDITTEXT        IDC_IMAGE_COLS,59,25,35,12,ES_AUTOHSCROLL
    RTEXT           "Eye Y (<=0)",-1,9,46,45,8
    EDITTEXT        IDC_EYE_Y,59,46,34,12,ES_AUTOHSCROLL
    RTEXT           "Eye Z (>1)",-1,9,66,45,8
    EDITTEXT        IDC_EYE_Z,59,66,35,12,ES_AUTOHSCROLL
    RTEXT           "Min row",-1,9,85,45,8
    EDITTEXT        IDC_MIN_ROW,59,85,35,12,ES_AUTOHSCROLL
    RTEXT           "Max row",-1,9,104,45,8
    EDITTEXT        IDC_MAX_ROW,59,104,35,12,ES_AUTOHSCROLL
    RTEXT           "Min col",-1,9,122,45,8
    EDITTEXT        IDC_MIN_COL,59,122,35,12,ES_AUTOHSCROLL
    RTEXT           "Max col",-1,9,140,45,8
    EDITTEXT        IDC_MAX_COL,59,140,35,12,ES_AUTOHSCROLL
    RTEXT           "Perim width",-1,9,159,45,8
    EDITTEXT        IDC_PERIM_WIDTH,59,159,35,12,ES_AUTOHSCROLL
    RTEXT           "Length divisions",-1,99,46,54,8
    EDITTEXT        IDC_LENGTH_DIVISIONS,160,46,34,12,ES_AUTOHSCROLL
    RTEXT           "Angle divisions",-1,99,66,54,8
    EDITTEXT        IDC_ANGLE_DIVISIONS,160,66,34,12,ES_AUTOHSCROLL
    GROUPBOX        "Pattern",-1,117,86,70,36
    CONTROL         "Checkerboard",IDC_CHECKER,"Button",BS_AUTORADIOBUTTON | BS_LEFTTEXT | WS_GROUP,121,95,60,10
    CONTROL         "Spiral",IDC_SPIRAL,"Button",BS_AUTORADIOBUTTON | BS_LEFTTEXT,148,108,33,10
END


DialogBoxPrintParams DIALOG DISCARDABLE  0, 0, 183, 41
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Print stereogram"
FONT 14, "MS Sans Serif"
BEGIN
    DEFPUSHBUTTON   "OK",IDOK,135,4,36,14
    PUSHBUTTON      "Cancel",IDCANCEL,135,21,36,14
    RTEXT           "Percent of page width:",-1,0,6,73,8
    EDITTEXT        IDC_PRINT_FRACTION,81,4,34,12,ES_AUTOHSCROLL
    RTEXT           "Vertical scaling percent:",-1,4,21,75,8
    EDITTEXT        IDC_PRINT_VERTICAL_SCALING,81,20,35,12,ES_AUTOHSCROLL
END