#include <\HutchDir\INCLUDE\RESOURCE.H>

// Constants for menu
#define IDM_SQR  1
#define IDM_EXIT 2

SqrPgm  MENU DISCARDABLE
BEGIN

    POPUP "&Sqr"
    BEGIN
         MENUITEM "&Sqr",IDM_SQR
         MENUITEM SEPARATOR
         MENUITEM "E&xit",IDM_EXIT
    END
END

4000 DIALOG DISCARDABLE  0, 0, 188, 77
STYLE DS_MODALFRAME | DS_3DLOOK | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Enter Ascii String"
FONT 8, "MS Sans Serif"
BEGIN
    CTEXT         "You can enter Bin, Oct, Dec, or Hex Text",-1, 4, 4, 180, 8
    LTEXT         "Ascii string up to 18 char's:",-1, 4, 19, 100, 8
    EDITTEXT      4001, 96, 18, 87, 11, ES_AUTOHSCROLL | ES_RIGHT
    CONTROL       "Base Values", 333, "button", BS_GROUPBOX | WS_CHILD, 4, 30, 180, 22
    CONTROL       "Base 02", 4002, "button", BS_AUTORADIOBUTTON | WS_TABSTOP | WS_CHILD, 10, 37, 40, 12
    CONTROL       "Base 08", 4008, "button", BS_AUTORADIOBUTTON | WS_TABSTOP | WS_CHILD, 53, 37, 40, 12
    CONTROL       "Base 10", 4010, "button", BS_AUTORADIOBUTTON | WS_TABSTOP | WS_CHILD, 96, 37, 40, 12
    CONTROL       "Base 16", 4016, "button", BS_AUTORADIOBUTTON | WS_TABSTOP | WS_CHILD, 139, 37, 40, 12

    DEFPUSHBUTTON "SQ Root", IDOK, 4, 60, 35, 12
    PUSHBUTTON    "Cancel", IDCANCEL, 50, 60, 35, 12

END
