#include "win-greg.h"
#include <windows.h>
#include <commctrl.h>

GREG MENU DISCARDABLE 
BEGIN
    POPUP "&Pencil"
    BEGIN
        POPUP "Number"
        BEGIN
            MENUITEM "0",                           IDM_PEN0
        END
    END
    POPUP "&Marker"
    BEGIN
        POPUP "Nsides"
        BEGIN
            MENUITEM "1",                           IDM_MARK1
        END
    END
    MENUITEM "&Lut",                        IDM_LUT
    MENUITEM "&Hardcopy",                   IDM_HARDCOPY
    MENUITEM "&Draw",                       IDM_DRAW
    MENUITEM "&Zoom",                       IDM_ZOOM
    MENUITEM "Zoom &off",                   IDM_ZOOMOFF
    MENUITEM "&Refresh",                    IDM_REFRESH
    MENUITEM "&Clear",                      IDM_CLEAR
END



/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
#define pad    2
#define size   46
#define width  142
#define offs   14
#define labw   46
#define labh   8
#define height 10
#define listh  50

IDD_DIALOG1 DIALOG DISCARDABLE  0, 0, width+pad+pad,
					pad+labh+pad+size+pad+height+pad+height+pad+height+pad+height+pad+listh+pad+height
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "HSV control"
// FONT 14 Arial allow size(46) become 128 pixels
FONT 14, "Arial"
BEGIN
    LTEXT           "Hue",IDC_STATIC,pad,1,labw,labh,SS_CENTER
    LTEXT           "Saturation",IDC_STATIC,labw+pad+pad,1,labw,labh,SS_CENTER
    LTEXT           "Value",IDC_STATIC,labw+labw+pad+pad+pad,1,labw,labh,SS_CENTER
    CONTROL         "Custom1",IDC_CUSTOM1,"HSVDRAW",WS_TABSTOP,pad,labh+pad,size,size
    CONTROL         "Custom2",IDC_CUSTOM2,"HSVDRAW",WS_TABSTOP,size+pad+pad,labh+pad,size,size
    CONTROL         "Custom3",IDC_CUSTOM3,"HSVDRAW",WS_TABSTOP,size+size+pad+pad+pad,labh+pad,size,size
	CONTROL         "Custom4",IDC_CUSTOM4,"HSVDRAW",WS_TABSTOP,pad+pad,pad+labh+pad+size,width-pad-pad,height
	LTEXT           "0",IDC_LABEL1,pad,pad+labh+pad+size+pad+height,offs+pad,labh,SS_CENTER
    CONTROL         "Slider1",IDC_SLIDER1,"msctls_trackbar32",TBS_BOTH | 
                    TBS_NOTICKS | WS_TABSTOP,pad+offs+pad,pad+labh+pad+size+pad+height,width-offs,height
	LTEXT           "360",IDC_LABEL2,pad,pad+labh+pad+size+pad+height+pad+height,offs+pad,labh,SS_CENTER
    CONTROL         "Slider2",IDC_SLIDER2,"msctls_trackbar32",TBS_BOTH | 
                    TBS_NOTICKS | WS_TABSTOP,pad+offs+pad,pad+labh+pad+size+pad+height+pad+height,width-offs,height
    EDITTEXT        IDC_EDIT2,pad+labw+pad,pad+labh+pad+size+pad+height+pad+height+pad+height,
								labw+labw,height,ES_AUTOHSCROLL
    LTEXT           "Save on disk:",IDC_STATIC,pad,pad+labh+pad+size+pad+height+pad+height+pad+height,
					labw,labh,SS_CENTER

    LISTBOX	    IDC_LIST1, pad,pad+labh+pad+size+pad+height+pad+height+pad+height+pad+height,width,listh,WS_VSCROLL
    PUSHBUTTON      "Dismiss",IDC_DISMISS,pad,
					pad+labh+pad+size+pad+height+pad+height+pad+height+pad+height+pad+listh,width,height
END


