more tweaks for smartphone

This commit is contained in:
ehouse 2009-10-22 02:47:46 +00:00
parent 06cd5f5a0e
commit b126b8b6bf
2 changed files with 20 additions and 16 deletions

View file

@ -179,7 +179,7 @@ DLL_VERS_RESOURCE
// ******** IDD_GAMEINFO DIALOG ********* // ******** IDD_GAMEINFO DIALOG *********
#define GAMEINFO_WIDTH 116 #define GAMEINFO_WIDTH 116
#ifdef CEFEATURE_CANSCROLL #ifdef CEFEATURE_CANSCROLL
# define ROW_HEIGHT 10 # define ROW_HEIGHT 11
# define ROW_SPACE 12 # define ROW_SPACE 12
# define ROW_SPACE_PL 11 # define ROW_SPACE_PL 11
#else #else
@ -202,7 +202,7 @@ DLL_VERS_RESOURCE
#else #else
# define SERVERROLE_ROW 3 # define SERVERROLE_ROW 3
# define GAME_NAME_WIDTH 50 # define GAME_NAME_WIDTH 50
# define SERVERCONF_ROW (SERVERROLE_ROW+ROW_SPACE) # define SERVERCONF_ROW (SERVERROLE_ROW+ROW_SPACE+3)
# define NPLAYERS_ROW (SERVERCONF_ROW+ROW_SPACE+3) # define NPLAYERS_ROW (SERVERCONF_ROW+ROW_SPACE+3)
# define GAME_REMOTE_LEFT 1 # define GAME_REMOTE_LEFT 1
# define GAME_NAME_LEFT 11 # define GAME_NAME_LEFT 11
@ -598,7 +598,7 @@ END
# define CONN_ROW_4 (CONN_ROW_3+ROW_SPACE+ROW_HEIGHT) # define CONN_ROW_4 (CONN_ROW_3+ROW_SPACE+ROW_HEIGHT)
# else # else
# define CONN_ROW_3 (CONN_ROW_1) # define CONN_ROW_3 (CONN_ROW_1)
# define CONN_ROW_4 (CONN_ROW_2+ROW_SPACE) # define CONN_ROW_4 (CONN_ROW_2+ROW_SPACE-3)
# endif # endif
# define CONN_ROW_5 (CONN_ROW_4+ROW_SPACE) # define CONN_ROW_5 (CONN_ROW_4+ROW_SPACE)
# define CONN_ROW_6 (CONN_ROW_5+ROW_SPACE) # define CONN_ROW_6 (CONN_ROW_5+ROW_SPACE)
@ -624,14 +624,16 @@ BEGIN
#endif #endif
#ifdef XWFEATURE_RELAY #ifdef XWFEATURE_RELAY
LTEXT "Sala (ha de coincidir en tots els dispositius que s'uneixin a la partida):", LTEXT "Sala (ha de coincidir en tots els dispositius que s'uneixin a la partida):",
IDC_INVITE_LAB,LAB_COL,CONN_ROW_3,100,(ROW_HEIGHT*2) IDC_INVITE_LAB,LAB_COL,CONN_ROW_3,90,((ROW_HEIGHT*2)-3)
EDITTEXT INVITE_EDIT,CTRL_COL,CONN_ROW_4,CTRL_COL_WIDTH,ROW_HEIGHT, EDITTEXT INVITE_EDIT,CTRL_COL,CONN_ROW_4,CTRL_COL_WIDTH,ROW_HEIGHT,
ES_AUTOHSCROLL ES_AUTOHSCROLL
LTEXT "Nom del repetidor (canvia poques vegades):",IDC_CRELAYNAME_LAB,LAB_COL,CONN_ROW_5,120,ROW_HEIGHT LTEXT "Nom del repetidor (canvia poques vegades):",
IDC_CRELAYNAME_LAB,LAB_COL,CONN_ROW_5,90,ROW_HEIGHT
EDITTEXT RELAYNAME_EDIT,CTRL_COL,CONN_ROW_6,CTRL_COL_WIDTH,ROW_HEIGHT, EDITTEXT RELAYNAME_EDIT,CTRL_COL,CONN_ROW_6,CTRL_COL_WIDTH,ROW_HEIGHT,
ES_AUTOHSCROLL ES_AUTOHSCROLL
LTEXT "Port del repetidor (canvia poques vegades):",IDC_CRELAYPORT_LAB,LAB_COL,CONN_ROW_7,120,ROW_HEIGHT LTEXT "Port del repetidor (canvia poques vegades):",
IDC_CRELAYPORT_LAB,LAB_COL,CONN_ROW_7,90,ROW_HEIGHT
EDITTEXT RELAYPORT_EDIT,CTRL_COL,CONN_ROW_8,CTRL_COL_WIDTH,ROW_HEIGHT, EDITTEXT RELAYPORT_EDIT,CTRL_COL,CONN_ROW_8,CTRL_COL_WIDTH,ROW_HEIGHT,
ES_AUTOHSCROLL | ES_NUMBER ES_AUTOHSCROLL | ES_NUMBER
#else #else
@ -639,7 +641,7 @@ BEGIN
#endif #endif
#ifdef XWFEATURE_IP_DIRECT #ifdef XWFEATURE_IP_DIRECT
LTEXT "Nom de l'amfitrió o adreça",IDC_IPNAME_LAB,LAB_COL,CONN_ROW_3,100,ROW_HEIGHT LTEXT "Nom de l'amfitrió o adreça",IDC_IPNAME_LAB,LAB_COL,CONN_ROW_3,90,ROW_HEIGHT
EDITTEXT IPNAME_EDIT,CTRL_COL,CONN_ROW_4,CTRL_COL_WIDTH,ROW_HEIGHT,ES_AUTOHSCROLL EDITTEXT IPNAME_EDIT,CTRL_COL,CONN_ROW_4,CTRL_COL_WIDTH,ROW_HEIGHT,ES_AUTOHSCROLL
#else #else
LTEXT "La connexió amb IP directa no és permesa.",IDC_IPNAME_LAB,LAB_COL,CONN_ROW_3,40,40 LTEXT "La connexió amb IP directa no és permesa.",IDC_IPNAME_LAB,LAB_COL,CONN_ROW_3,40,40

View file

@ -181,7 +181,7 @@ DLL_VERS_RESOURCE
// ******** IDD_GAMEINFO DIALOG ********* // ******** IDD_GAMEINFO DIALOG *********
#define GAMEINFO_WIDTH 116 #define GAMEINFO_WIDTH 116
#ifdef CEFEATURE_CANSCROLL #ifdef CEFEATURE_CANSCROLL
# define ROW_HEIGHT 10 # define ROW_HEIGHT 11
# define ROW_SPACE 12 # define ROW_SPACE 12
# define ROW_SPACE_PL 11 # define ROW_SPACE_PL 11
#else #else
@ -203,7 +203,7 @@ DLL_VERS_RESOURCE
# define GAME_PWDLABEL_LEFT GAME_PWD_LEFT # define GAME_PWDLABEL_LEFT GAME_PWD_LEFT
#else #else
# define SERVERROLE_ROW 3 # define SERVERROLE_ROW 3
# define GAME_NAME_WIDTH 56 # define GAME_NAME_WIDTH 50
# define SERVERCONF_ROW (SERVERROLE_ROW+ROW_SPACE+3) # define SERVERCONF_ROW (SERVERROLE_ROW+ROW_SPACE+3)
# define NPLAYERS_ROW (SERVERCONF_ROW+ROW_SPACE+3) # define NPLAYERS_ROW (SERVERCONF_ROW+ROW_SPACE+3)
# define GAME_REMOTE_LEFT 1 # define GAME_REMOTE_LEFT 1
@ -266,7 +266,7 @@ BEGIN
SERVERCONF_ROW,60,ROW_HEIGHT SERVERCONF_ROW,60,ROW_HEIGHT
#endif #endif
LTEXT "",IDC_TOTAL_LABEL,LEFT_COL,NPLAYERS_ROW,70,8 LTEXT "",IDC_TOTAL_LABEL,LEFT_COL,NPLAYERS_ROW,60,8
XWCOMBO(IDC_NPLAYERSCOMBO,68,NPLAYERS_ROW,24,ROW_HEIGHT,0,58,0) XWCOMBO(IDC_NPLAYERSCOMBO,68,NPLAYERS_ROW,24,ROW_HEIGHT,0,58,0)
LTEXT "Name",IDC_NAMELABEL,GAME_NAMELABEL_LEFT, LTEXT "Name",IDC_NAMELABEL,GAME_NAMELABEL_LEFT,
@ -545,7 +545,7 @@ BEGIN
CONTROL "Hide tile values",IDC_HIDETILEVALUES,"Button", CONTROL "Hide tile values",IDC_HIDETILEVALUES,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,8,PR_ROW5,80,PREFS_ROW_HT BS_AUTOCHECKBOX | WS_TABSTOP,8,PR_ROW5,80,PREFS_ROW_HT
PUSHBUTTON "Edit colors...",IDC_PREFCOLORS,8,PR_ROW6,60,12 PUSHBUTTON "Edit colors...",IDC_PREFCOLORS,8,PR_ROW6,60,12
PUSHBUTTON "Change language...",IDC_PREFLOCALE,8,PR_ROW7,70,12 PUSHBUTTON "Change language...",IDC_PREFLOCALE,8,PR_ROW7,78,12
#ifdef ALLOW_CHOOSE_FONTS #ifdef ALLOW_CHOOSE_FONTS
PUSHBUTTON "Choose font...",IDC_PREFFONTS,8,PR_ROW8,60,12 PUSHBUTTON "Choose font...",IDC_PREFFONTS,8,PR_ROW8,60,12
#endif #endif
@ -591,7 +591,7 @@ END
# define CONN_ROW_4 (CONN_ROW_3+ROW_SPACE+ROW_HEIGHT) # define CONN_ROW_4 (CONN_ROW_3+ROW_SPACE+ROW_HEIGHT)
# else # else
# define CONN_ROW_3 (CONN_ROW_1) # define CONN_ROW_3 (CONN_ROW_1)
# define CONN_ROW_4 (CONN_ROW_2+ROW_SPACE) # define CONN_ROW_4 (CONN_ROW_2+ROW_SPACE-3)
# endif # endif
# define CONN_ROW_5 (CONN_ROW_4+ROW_SPACE) # define CONN_ROW_5 (CONN_ROW_4+ROW_SPACE)
# define CONN_ROW_6 (CONN_ROW_5+ROW_SPACE) # define CONN_ROW_6 (CONN_ROW_5+ROW_SPACE)
@ -617,14 +617,16 @@ BEGIN
#endif #endif
#ifdef XWFEATURE_RELAY #ifdef XWFEATURE_RELAY
LTEXT "Room (must match for all devices joining the game):", LTEXT "Room (must match for all devices joining the game):",
IDC_INVITE_LAB,LAB_COL,CONN_ROW_3,100,(ROW_HEIGHT*2) IDC_INVITE_LAB,LAB_COL,CONN_ROW_3,90,((ROW_HEIGHT*2)-3)
EDITTEXT INVITE_EDIT,CTRL_COL,CONN_ROW_4,CTRL_COL_WIDTH,ROW_HEIGHT, EDITTEXT INVITE_EDIT,CTRL_COL,CONN_ROW_4,CTRL_COL_WIDTH,ROW_HEIGHT,
ES_AUTOHSCROLL ES_AUTOHSCROLL
LTEXT "Relay name (rarely changes):",IDC_CRELAYNAME_LAB,LAB_COL,CONN_ROW_5,120,ROW_HEIGHT LTEXT "Relay name (rarely changes):",IDC_CRELAYNAME_LAB,
LAB_COL,CONN_ROW_5,90,ROW_HEIGHT
EDITTEXT RELAYNAME_EDIT,CTRL_COL,CONN_ROW_6,CTRL_COL_WIDTH,ROW_HEIGHT, EDITTEXT RELAYNAME_EDIT,CTRL_COL,CONN_ROW_6,CTRL_COL_WIDTH,ROW_HEIGHT,
ES_AUTOHSCROLL ES_AUTOHSCROLL
LTEXT "Relay port (rarely changes):",IDC_CRELAYPORT_LAB,LAB_COL,CONN_ROW_7,120,ROW_HEIGHT LTEXT "Relay port (rarely changes):",IDC_CRELAYPORT_LAB,LAB_COL,
CONN_ROW_7,90,ROW_HEIGHT
EDITTEXT RELAYPORT_EDIT,CTRL_COL,CONN_ROW_8,CTRL_COL_WIDTH,ROW_HEIGHT, EDITTEXT RELAYPORT_EDIT,CTRL_COL,CONN_ROW_8,CTRL_COL_WIDTH,ROW_HEIGHT,
ES_AUTOHSCROLL | ES_NUMBER ES_AUTOHSCROLL | ES_NUMBER
#else #else
@ -632,7 +634,7 @@ BEGIN
#endif #endif
#ifdef XWFEATURE_IP_DIRECT #ifdef XWFEATURE_IP_DIRECT
LTEXT "Host name or address",IDC_IPNAME_LAB,LAB_COL,CONN_ROW_3,100,ROW_HEIGHT LTEXT "Host name or address",IDC_IPNAME_LAB,LAB_COL,CONN_ROW_3,90,ROW_HEIGHT
EDITTEXT IPNAME_EDIT,CTRL_COL,CONN_ROW_4,CTRL_COL_WIDTH,ROW_HEIGHT,ES_AUTOHSCROLL EDITTEXT IPNAME_EDIT,CTRL_COL,CONN_ROW_4,CTRL_COL_WIDTH,ROW_HEIGHT,ES_AUTOHSCROLL
#else #else
LTEXT "Direct IP connection not supported.",IDC_IPNAME_LAB,LAB_COL,CONN_ROW_3,40,40 LTEXT "Direct IP connection not supported.",IDC_IPNAME_LAB,LAB_COL,CONN_ROW_3,40,40