#include <windows.h>
#include "LIN.RH"
MenuInit MENU  DISCARDABLE
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "Save Lin Image",           IDM_SAVEIMAGE
        MENUITEM "Print Lin Image",          IDM_PRINTIMAGE
        MENUITEM SEPARATOR
        MENUITEM "&Exit",                    IDM_EXIT
    END
    POPUP "Image"
    BEGIN
        MENUITEM "Edge replacement",         IDM_COMPUTE_ER
        MENUITEM "Axial growth",             IDM_COMPUTE_AG
        MENUITEM "3D Axial growth",          IDM_COMPUTE_AG3D
    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 LIN"
FONT 8, "MS Sans Serif"
BEGIN
    PUSHBUTTON      "OK",IDOK,43,60,50,14,BS_CENTER
    CTEXT           "LIN 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


DialogBoxERParams DIALOGEX 0, 0, 202, 163
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Edge rewriting parameters"
FONT 14, "MS Sans Serif", 0, 0, 0x0
BEGIN
    DEFPUSHBUTTON   "OK",IDOK,144,5,50,14
    PUSHBUTTON      "Cancel",IDCANCEL,144,24,50,14
    RTEXT           "Rows:",-1,22,8,24,8
    EDITTEXT        IDC_IMAGE_ROWS,51,8,34,12,ES_AUTOHSCROLL
    RTEXT           "Cols:",-1,26,28,20,8
    EDITTEXT        IDC_IMAGE_COLS,51,28,35,12,ES_AUTOHSCROLL
    RTEXT           "Line width",-1,6,48,40,8
    EDITTEXT        IDC_LINE_WIDTH,51,48,35,12,ES_AUTOHSCROLL
    RTEXT           "Depth",-1,14,75,41,8
    EDITTEXT        IDC_DEPTH,60,75,35,12,ES_AUTOHSCROLL
    RTEXT           "Angle",-1,110,76,45,8
    EDITTEXT        IDC_ANGLE,160,76,34,12,ES_AUTOHSCROLL
    RTEXT           "Axiom",-1,14,97,41,8
    EDITTEXT        IDC_AXIOM,60,97,134,12,ES_AUTOHSCROLL
    RTEXT           "Primary",-1,17,119,38,8
    EDITTEXT        IDC_PRIMARY,60,119,134,12,ES_AUTOHSCROLL
    RTEXT           "Secondary",-1,7,140,45,8
    EDITTEXT        IDC_SECONDARY,60,141,134,12,ES_AUTOHSCROLL
END


DialogBoxAGParams DIALOGEX 0, 0, 202, 163
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Axial growth parameters"
FONT 14, "MS Sans Serif", 0, 0, 0x0
BEGIN
    DEFPUSHBUTTON   "OK",IDOK,144,5,50,14
    PUSHBUTTON      "Cancel",IDCANCEL,144,24,50,14
    RTEXT           "Rows:",-1,22,8,24,8
    EDITTEXT        IDC_IMAGE_ROWS,51,8,34,12,ES_AUTOHSCROLL
    RTEXT           "Cols:",-1,26,28,20,8
    EDITTEXT        IDC_IMAGE_COLS,51,28,35,12,ES_AUTOHSCROLL
    RTEXT           "Line width",-1,6,48,40,8
    EDITTEXT        IDC_LINE_WIDTH,51,48,35,12,ES_AUTOHSCROLL
    RTEXT           "Line shrink factor",-1,96,48,57,8
    EDITTEXT        IDC_SHRINK,158,48,35,12,ES_AUTOHSCROLL
    RTEXT           "Depth",-1,14,75,41,8
    EDITTEXT        IDC_DEPTH,60,75,35,12,ES_AUTOHSCROLL
    RTEXT           "Angle",-1,110,76,45,8
    EDITTEXT        IDC_ANGLE,160,76,34,12,ES_AUTOHSCROLL
    RTEXT           "Axiom",-1,14,97,41,8
    EDITTEXT        IDC_AXIOM,60,97,134,12,ES_AUTOHSCROLL
    RTEXT           "Primary",-1,17,119,38,8
    EDITTEXT        IDC_PRIMARY,60,119,134,12,ES_AUTOHSCROLL
    RTEXT           "Secondary",-1,7,140,45,8
    EDITTEXT        IDC_SECONDARY,60,141,134,12,ES_AUTOHSCROLL
END


DialogBox3DAGParams DIALOGEX 0, 0, 202, 128
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "3D axial generation parameters"
FONT 14, "MS Sans Serif", 0, 0, 0x0
BEGIN
    DEFPUSHBUTTON   "OK",IDOK,144,5,50,14
    PUSHBUTTON      "Cancel",IDCANCEL,144,24,50,14
    RTEXT           "Rows:",-1,22,8,24,8
    EDITTEXT        IDC_IMAGE_ROWS,51,8,34,12,ES_AUTOHSCROLL
    RTEXT           "Cols:",-1,26,28,20,8
    EDITTEXT        IDC_IMAGE_COLS,51,28,35,12,ES_AUTOHSCROLL
    RTEXT           "Line width",-1,6,48,40,8
    EDITTEXT        IDC_LINE_WIDTH,51,48,35,12,ES_AUTOHSCROLL
    RTEXT           "Line shrink factor",-1,96,48,57,8
    EDITTEXT        IDC_SHRINK,158,48,35,12,ES_AUTOHSCROLL
    RTEXT           "Depth",-1,14,69,41,8
    EDITTEXT        IDC_DEPTH,60,69,35,12,ES_AUTOHSCROLL
    RTEXT           "Angle",-1,110,70,45,8
    EDITTEXT        IDC_ANGLE,160,70,34,12,ES_AUTOHSCROLL
    RTEXT           "Azimuth (0-360)",-1,7,89,56,8
    EDITTEXT        IDC_AZIMUTH,68,89,30,12,ES_AUTOHSCROLL
    RTEXT           "Elevation (0-90)",-1,107,90,57,8
    EDITTEXT        IDC_ELEVATION,169,90,23,12,ES_AUTOHSCROLL
    RTEXT           "Filled object step size",-1,7,110,74,8
    EDITTEXT        IDC_STEPSIZE,86,110,30,12,ES_AUTOHSCROLL
END


DialogBoxPrintParams DIALOG DISCARDABLE  0, 0, 183, 41
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Print Lin image"
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

/*
   Icons
*/

IDI_LIN ICON "LIN.ICO"
