mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
shrink color editor
This commit is contained in:
parent
697e499c9f
commit
e70a4c9009
2 changed files with 27 additions and 26 deletions
|
@ -63,9 +63,9 @@ initEditAndSlider( HWND hDlg, XP_U16 sliderID, XP_U8 val )
|
|||
static void
|
||||
initChooseColor( ClrEditDlgState* eState, HWND hDlg )
|
||||
{
|
||||
eState->clrRect.left = 165;
|
||||
eState->clrRect.left = 162;
|
||||
eState->clrRect.top = 5;
|
||||
eState->clrRect.right = 195;
|
||||
eState->clrRect.right = 193;
|
||||
eState->clrRect.bottom = 90;
|
||||
|
||||
InvalidateRect( hDlg, &eState->clrRect, FALSE );
|
||||
|
|
|
@ -270,7 +270,7 @@ BEGIN
|
|||
CONTROL "Explain robot scores",IDC_CHECKROBOTSCORES,"Button",
|
||||
BS_AUTOCHECKBOX | WS_TABSTOP,8,52,90,10
|
||||
#ifdef XWFEATURE_CE_EDITCOLORS
|
||||
PUSHBUTTON "Edit colors...",IDC_PREFCOLORS,8,67,69,12
|
||||
PUSHBUTTON "Edit colors...",IDC_PREFCOLORS,8,67,60,12
|
||||
#endif
|
||||
CONTROL "Smart robot",IDC_CHECKSMARTROBOT,"Button",
|
||||
BS_AUTOCHECKBOX | WS_TABSTOP,8,22,90,10
|
||||
|
@ -293,31 +293,31 @@ BEGIN
|
|||
END
|
||||
|
||||
#ifdef XWFEATURE_CE_EDITCOLORS
|
||||
#define CLR_LAB_WIDTH 45
|
||||
#define CLR_LAB_HT 18
|
||||
#define CLR_LAB_WIDTH 40
|
||||
#define CLR_LAB_HT 14
|
||||
#define CLR_BUT_WIDTH 12
|
||||
#define CLR_BUT_HT 12
|
||||
#define CLR_ROW_1 8
|
||||
#define CLR_ROW_2 24
|
||||
#define CLR_ROW_3 44
|
||||
#define CLR_ROW_4 62
|
||||
#define CLR_ROW_5 80
|
||||
#define CLR_COL_1 5
|
||||
#define CLR_COL_2 50
|
||||
#define CLR_COL_3 66
|
||||
#define CLR_COL_4 112
|
||||
#define BUTTON_ROW 100
|
||||
#define CLR_ROW_1 5
|
||||
#define CLR_ROW_2 19
|
||||
#define CLR_ROW_3 36
|
||||
#define CLR_ROW_4 53
|
||||
#define CLR_ROW_5 67
|
||||
#define BUTTON_ROW 84
|
||||
#define CLR_COL_1 2
|
||||
#define CLR_COL_2 43
|
||||
#define CLR_COL_3 58
|
||||
#define CLR_COL_4 99
|
||||
|
||||
IDD_COLORSDLG DIALOG DISCARDABLE 0, 20, 130, 125
|
||||
IDD_COLORSDLG DIALOG DISCARDABLE 0, 20, 116, 103
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | DS_CENTER
|
||||
CAPTION "Color preferences"
|
||||
FONT 8, "System"
|
||||
BEGIN
|
||||
LTEXT "Double letter:",DLBLTR_LABEL,CLR_COL_1,CLR_ROW_1,
|
||||
LTEXT "Dbl letter:",DLBLTR_LABEL,CLR_COL_1,CLR_ROW_1,
|
||||
CLR_LAB_WIDTH,CLR_LAB_HT
|
||||
PUSHBUTTON "",DLBLTR_BUTTON,CLR_COL_2,CLR_ROW_1,CLR_BUT_WIDTH,CLR_BUT_HT
|
||||
|
||||
LTEXT "Double word:",DBLWRD_LABEL,CLR_COL_3,CLR_ROW_1,
|
||||
LTEXT "Dbl word:",DBLWRD_LABEL,CLR_COL_3,CLR_ROW_1,
|
||||
CLR_LAB_WIDTH,CLR_LAB_HT
|
||||
PUSHBUTTON "",DBLWRD_BUTTON,CLR_COL_4,CLR_ROW_1,CLR_BUT_WIDTH,CLR_BUT_HT
|
||||
|
||||
|
@ -356,8 +356,8 @@ BEGIN
|
|||
PUSHBUTTON "",PLAYER4_BUTTON,CLR_COL_4,CLR_ROW_5,CLR_BUT_WIDTH,CLR_BUT_HT
|
||||
|
||||
|
||||
DEFPUSHBUTTON "OK",IDOK,20,BUTTON_ROW,38,14
|
||||
PUSHBUTTON "Cancel",IDCANCEL,70,BUTTON_ROW,39,14
|
||||
DEFPUSHBUTTON "OK",IDOK,15,BUTTON_ROW,28,14
|
||||
PUSHBUTTON "Cancel",IDCANCEL,60,BUTTON_ROW,39,14
|
||||
END
|
||||
|
||||
//
|
||||
|
@ -372,8 +372,9 @@ END
|
|||
#define CLREDIT_ROW_1 5
|
||||
#define CLREDIT_ROW_2 21
|
||||
#define CLREDIT_ROW_3 37
|
||||
#define SLIDER_WIDTH 46
|
||||
|
||||
IDD_COLOREDITDLG DIALOG DISCARDABLE 0, 0, 115, 77
|
||||
IDD_COLOREDITDLG DIALOG DISCARDABLE 0, 0, 112, 75
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | DS_CENTER
|
||||
CAPTION "Edit color"
|
||||
FONT 8, "System"
|
||||
|
@ -384,7 +385,7 @@ BEGIN
|
|||
ES_AUTOHSCROLL | ES_NUMBER
|
||||
CONTROL "foo",CLREDT_SLIDER1,"msctls_trackbar32",
|
||||
TBS_BOTH|TBS_NOTICKS|WS_TABSTOP,
|
||||
CLRESLIDER_COL,CLREDIT_ROW_1,48,15
|
||||
CLRESLIDER_COL,CLREDIT_ROW_1,SLIDER_WIDTH,15
|
||||
|
||||
LTEXT "Green:",GREEN_LABEL,CLRELABEL_COL,CLREDIT_ROW_2,
|
||||
CLRE_LAB_WIDTH,CLRE_LAB_HT
|
||||
|
@ -392,7 +393,7 @@ BEGIN
|
|||
ES_AUTOHSCROLL | ES_NUMBER
|
||||
CONTROL "foo",CLREDT_SLIDER2,"msctls_trackbar32",
|
||||
TBS_BOTH|TBS_NOTICKS|WS_TABSTOP,
|
||||
CLRESLIDER_COL,CLREDIT_ROW_2,48,15
|
||||
CLRESLIDER_COL,CLREDIT_ROW_2,SLIDER_WIDTH,15
|
||||
|
||||
LTEXT "Blue:",BLUE_LABEL,CLRELABEL_COL,CLREDIT_ROW_3,
|
||||
CLRE_LAB_WIDTH,CLRE_LAB_HT
|
||||
|
@ -400,10 +401,10 @@ BEGIN
|
|||
ES_AUTOHSCROLL | ES_NUMBER
|
||||
CONTROL "foo",CLREDT_SLIDER3,"msctls_trackbar32",
|
||||
TBS_BOTH|TBS_NOTICKS|WS_TABSTOP,
|
||||
CLRESLIDER_COL,CLREDIT_ROW_3,48,15
|
||||
CLRESLIDER_COL,CLREDIT_ROW_3,SLIDER_WIDTH,15
|
||||
|
||||
DEFPUSHBUTTON "OK",IDOK,15,57,34,14
|
||||
PUSHBUTTON "Cancel",IDCANCEL,63,57,39,14
|
||||
DEFPUSHBUTTON "OK",IDOK,15,57,28,14
|
||||
PUSHBUTTON "Cancel",IDCANCEL,58,57,39,14
|
||||
END
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue