mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-14 08:01:38 +01:00
add controls for sms connecting
This commit is contained in:
parent
eddd7fe55b
commit
4fbb1c9662
1 changed files with 74 additions and 48 deletions
122
wince/xwords4.rc
122
wince/xwords4.rc
|
@ -200,26 +200,29 @@ END
|
|||
# define ROW_SPACE_PL ROW_SPACE
|
||||
#endif
|
||||
#define CHECK_WIDTH 10
|
||||
#define GAME_NAME_WIDTH 56
|
||||
#define LEFT_COL 2
|
||||
#ifdef XWFEATURE_STANDALONE_ONLY
|
||||
# define GAME_NAME_WIDTH 56
|
||||
# define GAME_LABEL_WIDTH (GAME_NAME_WIDTH-10)
|
||||
# define GAME_NAME_LEFT LEFT_COL
|
||||
# define GAME_ROBOT_LEFT (GAME_NAME_LEFT + GAME_NAME_WIDTH + 5)
|
||||
# define GAME_PWD_LEFT (GAME_ROBOT_LEFT + 15)
|
||||
# define NPLAYERS_ROW 3
|
||||
# define GAME_NAMELABEL_LEFT GAME_NAME_LEFT
|
||||
# define GAME_ROBOTLABEL_LEFT GAME_ROBOT_LEFT
|
||||
# define GAME_ROBOTLABEL_LEFT (GAME_ROBOT_LEFT-7)
|
||||
# define GAME_PWDLABEL_LEFT GAME_PWD_LEFT
|
||||
#else
|
||||
# define SERVERROLE_ROW 3
|
||||
# define GAME_NAME_WIDTH 56
|
||||
# define NPLAYERS_ROW (SERVERROLE_ROW+ROW_SPACE+3)
|
||||
# define GAME_REMOTE_LEFT 2
|
||||
# define GAME_NAME_LEFT 15
|
||||
# define GAME_ROBOT_LEFT 92
|
||||
# define GAME_PWD_LEFT (GAME_ROBOT_LEFT + CHECK_WIDTH + 6)
|
||||
# define GAME_REMOTE_LEFT 1
|
||||
# define GAME_NAME_LEFT 11
|
||||
# define GAME_ROBOT_LEFT (GAME_NAME_LEFT+GAME_NAME_WIDTH+2)
|
||||
# define GAME_PWD_LEFT (GAME_ROBOT_LEFT + CHECK_WIDTH + 4)
|
||||
# define GAME_NAMELABEL_LEFT (GAME_NAME_LEFT + 20)
|
||||
# define GAME_ROBOTLABEL_LEFT 87
|
||||
# define GAME_PWDLABEL_LEFT 105
|
||||
# define GAME_NAMELABEL_WIDTH (GAME_NAME_WIDTH-15)
|
||||
# define GAME_ROBOTLABEL_LEFT (GAME_ROBOT_LEFT-10)
|
||||
# define GAME_PWDLABEL_LEFT (GAME_PWD_LEFT)
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -260,8 +263,13 @@ CAPTION "Game info"
|
|||
FONT 8, "System"
|
||||
BEGIN
|
||||
#ifndef XWFEATURE_STANDALONE_ONLY
|
||||
LTEXT "Role:",IDC_STATIC,25,SERVERROLE_ROW,20,8
|
||||
COMBOBOX IDC_ROLECOMBO,45,SERVERROLE_ROW,50,58,CBS_DROPDOWNLIST |
|
||||
LTEXT "Role:",IDC_STATIC,5,SERVERROLE_ROW,20,8
|
||||
#ifdef _WIN32_WCE
|
||||
LISTBOX IDC_ROLECOMBO, 26, SERVERROLE_ROW, 70, ROW_HEIGHT, LISTBOX_CONTROL_FLAGS
|
||||
CONTROL "", IDC_ROLEUPDOWN, UPDOWN_CLASS, SPINNER_CONTROL_FLAGS,
|
||||
0, 0, 0, 0
|
||||
#endif
|
||||
COMBOBOX IDC_ROLECOMBO_PPC,25,SERVERROLE_ROW,50,58,CBS_DROPDOWNLIST |
|
||||
WS_VSCROLL | WS_TABSTOP
|
||||
|
||||
#endif
|
||||
|
@ -278,8 +286,8 @@ BEGIN
|
|||
PUSHBUTTON "Jugl.",GIJUGGLE_BUTTON,75,NPLAYERS_ROW,20,ROW_HEIGHT
|
||||
|
||||
LTEXT "Name",IDC_STATIC,GAME_NAMELABEL_LEFT,
|
||||
LABELS_ROW,GAME_NAME_WIDTH-10,8,SS_NOPREFIX
|
||||
LTEXT "Robot",IDC_STATIC,GAME_ROBOTLABEL_LEFT-7,LABELS_ROW,22,8
|
||||
LABELS_ROW,GAME_NAMELABEL_WIDTH,8,SS_NOPREFIX
|
||||
LTEXT "Robot",IDC_STATIC,GAME_ROBOTLABEL_LEFT,LABELS_ROW,22,8
|
||||
LTEXT "Pwd",IDC_STATIC,GAME_PWDLABEL_LEFT,LABELS_ROW,16,8
|
||||
|
||||
#if defined XWFEATURE_RELAY || defined XWFEATURE_BLUETOOTH
|
||||
|
@ -613,58 +621,76 @@ BEGIN
|
|||
#endif
|
||||
END
|
||||
|
||||
#if defined XWFEATURE_RELAY || defined XWFEATURE_BLUETOOTH
|
||||
#ifndef XWFEATURE_STANDALONE_ONLY
|
||||
|
||||
# define LAB_COL 5
|
||||
# define LAB_COL_WIDTH 38
|
||||
# define CTRL_COL 15
|
||||
# define CTRL_COL_WIDTH 80
|
||||
# define CONN_ROW_1 2
|
||||
# define CONN_ROW_2 (CONN_ROW_1+ROW_SPACE)
|
||||
# define CONN_ROW_3 (CONN_ROW_2+ROW_SPACE)
|
||||
# define CONN_ROW_4 (CONN_ROW_3+ROW_SPACE)
|
||||
# define CONN_ROW_5 (CONN_ROW_4+ROW_SPACE)
|
||||
# define CONN_ROW_6 (CONN_ROW_5+ROW_SPACE)
|
||||
# define CONN_ROW_7 (CONN_ROW_6+ROW_SPACE)
|
||||
# define CONN_ROW_8 (CONN_ROW_7+ROW_SPACE)
|
||||
# define BUTTON_ROW (CONN_ROW_8+ROW_SPACE)
|
||||
#ifdef _WIN32_WCE
|
||||
# define CONNSDLG_HT BUTTON_ROW
|
||||
#else
|
||||
# define CONNSDLG_HT (BUTTON_ROW+ROW_SPACE+3)
|
||||
#endif
|
||||
|
||||
# define LAB_COL 8
|
||||
# define LAB_COL_WIDTH 40
|
||||
# define CTRL_COL 50
|
||||
# define CTRL_COL_WIDTH 60
|
||||
# define CONN_ROW_1 10
|
||||
# define CONN_ROW_2 25
|
||||
# define CONN_ROW_HINT 45
|
||||
# define CONN_ROW_3 57
|
||||
# define CONN_ROW_4 70
|
||||
# define BUTTON_ROW 98
|
||||
/* #This is a comment???? */
|
||||
IDD_CONNSSDLG DIALOG DISCARDABLE 0, 20, 120, 115
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | DS_CENTER
|
||||
IDD_CONNSSDLG DIALOG DISCARDABLE 0, 20, 120, CONNSDLG_HT
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | DS_CENTER | WS_VSCROLL
|
||||
CAPTION "Connection"
|
||||
FONT 8, "System"
|
||||
BEGIN
|
||||
|
||||
LTEXT "Connect via",IDC_CCONVIA_LAB,LAB_COL,CONN_ROW_1,40,12
|
||||
COMBOBOX IDC_CONNECTCOMBO,CTRL_COL,CONN_ROW_1,CTRL_COL_WIDTH,58,CBS_DROPDOWNLIST |
|
||||
WS_VSCROLL | WS_TABSTOP
|
||||
LTEXT "Connect via:",IDC_CCONVIA_LAB,LAB_COL,CONN_ROW_1,40,ROW_HEIGHT
|
||||
#ifdef _WIN32_WCE
|
||||
LISTBOX IDC_CONNECT_COMBO, CTRL_COL,CONN_ROW_2,CTRL_COL_WIDTH,ROW_HEIGHT, LISTBOX_CONTROL_FLAGS
|
||||
CONTROL "", IDC_CONNECTUPDOWN, UPDOWN_CLASS, SPINNER_CONTROL_FLAGS, 0, 0, 0, 0
|
||||
#endif
|
||||
COMBOBOX IDC_CONNECT_COMBO_PPC,CTRL_COL,CONN_ROW_2,CTRL_COL_WIDTH,58,
|
||||
CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
|
||||
|
||||
#ifdef XWFEATURE_RELAY
|
||||
LTEXT "Cookie",IDC_COOKIE_LAB,LAB_COL,CONN_ROW_2,40,12
|
||||
EDITTEXT COOKIE_EDIT,CTRL_COL,CONN_ROW_2,CTRL_COL_WIDTH,12,
|
||||
#ifdef XWFEATURE_RELAY
|
||||
LTEXT "Cookie:",IDC_COOKIE_LAB,LAB_COL,CONN_ROW_3,40,ROW_HEIGHT
|
||||
EDITTEXT COOKIE_EDIT,CTRL_COL,CONN_ROW_4,CTRL_COL_WIDTH,ROW_HEIGHT,
|
||||
ES_AUTOHSCROLL
|
||||
|
||||
|
||||
CTEXT "(These will rarely change)",IDC_CRELAYHINT_LAB,0,CONN_ROW_HINT,120,12
|
||||
LTEXT "Relay name",IDC_CRELAYNAME_LAB,LAB_COL,CONN_ROW_3,40,12
|
||||
EDITTEXT RELAYNAME_EDIT,CTRL_COL,CONN_ROW_3,CTRL_COL_WIDTH,12,
|
||||
LTEXT "Relay name (rarely changes):",IDC_CRELAYNAME_LAB,LAB_COL,CONN_ROW_5,120,ROW_HEIGHT
|
||||
EDITTEXT RELAYNAME_EDIT,CTRL_COL,CONN_ROW_6,CTRL_COL_WIDTH,ROW_HEIGHT,
|
||||
ES_AUTOHSCROLL
|
||||
LTEXT "Relay port",IDC_CRELAYPORT_LAB,LAB_COL,CONN_ROW_4,40,12
|
||||
EDITTEXT RELAYPORT_EDIT,CTRL_COL,CONN_ROW_4,CTRL_COL_WIDTH,12,
|
||||
LTEXT "Relay port (rarely changes):",IDC_CRELAYPORT_LAB,LAB_COL,CONN_ROW_7,120,ROW_HEIGHT
|
||||
EDITTEXT RELAYPORT_EDIT,CTRL_COL,CONN_ROW_8,CTRL_COL_WIDTH,ROW_HEIGHT,
|
||||
ES_AUTOHSCROLL | ES_NUMBER
|
||||
#else
|
||||
LTEXT "Relay connection not supported.",IDC_COOKIE_LAB,LAB_COL,CONN_ROW_2,40,12
|
||||
LTEXT "Relay connection not supported.",IDC_COOKIE_LAB,LAB_COL,CONN_ROW_3,40,40
|
||||
#endif
|
||||
|
||||
#ifdef XWFEATURE_BLUETOOTH
|
||||
LTEXT "Host name:",
|
||||
IDC_BLUET_ADDR_LAB,LAB_COL,CONN_ROW_2,40,36
|
||||
EDITTEXT IDC_BLUET_ADDR_EDIT,CTRL_COL,CONN_ROW_2,CTRL_COL_WIDTH,12,
|
||||
ES_AUTOHSCROLL
|
||||
PUSHBUTTON "Browse",IDC_BLUET_ADDR_BROWSE,CTRL_COL,CONN_ROW_HINT,
|
||||
REPOS_BUTTON_WIDTH,REPOS_BUTTON_HT
|
||||
|
||||
#ifdef XWFEATURE_IP_DIRECT
|
||||
LTEXT "Host name or address",IDC_IPNAME_LAB,LAB_COL,CONN_ROW_3,100,ROW_HEIGHT
|
||||
EDITTEXT IPNAME_EDIT,CTRL_COL,CONN_ROW_4,CTRL_COL_WIDTH,ROW_HEIGHT,ES_AUTOHSCROLL
|
||||
#else
|
||||
LTEXT "Bluetooth not supported.",
|
||||
IDC_BLUET_ADDR_LAB,LAB_COL,CONN_ROW_2,40,12
|
||||
LTEXT "Direct IP connection not supported.",IDC_IPNAME_LAB,LAB_COL,CONN_ROW_3,40,40
|
||||
#endif
|
||||
|
||||
#ifdef XWFEATURE_SMS
|
||||
LTEXT "Host Phone:",IDC_SMS_PHONE_LAB,LAB_COL,CONN_ROW_3,60,ROW_HEIGHT
|
||||
EDITTEXT IDC_SMS_PHONE_EDIT,CTRL_COL,CONN_ROW_4,CTRL_COL_WIDTH,ROW_HEIGHT,
|
||||
ES_AUTOHSCROLL | ES_NUMBER
|
||||
LTEXT "Host Port:",IDC_SMS_PORT_LAB,LAB_COL,CONN_ROW_5,60,ROW_HEIGHT
|
||||
EDITTEXT IDC_SMS_PORT_EDIT,CTRL_COL,CONN_ROW_6,CTRL_COL_WIDTH,ROW_HEIGHT,
|
||||
ES_AUTOHSCROLL | ES_NUMBER
|
||||
#else
|
||||
LTEXT "Texting not supported.",
|
||||
IDC_SMS_PHONE_LAB,LAB_COL,CONN_ROW_3,40,ROW_HEIGHT
|
||||
#endif
|
||||
|
||||
#ifndef _WIN32_WCE
|
||||
PUSHBUTTON "OK",IDOK,9,BUTTON_ROW,REPOS_BUTTON_WIDTH,REPOS_BUTTON_HT
|
||||
DEFPUSHBUTTON "Cancel",IDCANCEL,70,BUTTON_ROW,
|
||||
|
|
Loading…
Reference in a new issue