mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-26 09:58:20 +01:00
Use Ok for stringbox, Done for Saved games dialog; next release to be
rc1, not b7
This commit is contained in:
parent
554b204cf5
commit
3ab61e4264
6 changed files with 29 additions and 9 deletions
|
@ -78,7 +78,7 @@ StrBox(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
}
|
||||
|
||||
ceDlgSetup( &state->dlgHdr, hDlg,
|
||||
state->isQuery? DLG_STATE_NONE : DLG_STATE_DONEONLY );
|
||||
state->isQuery? DLG_STATE_NONE : DLG_STATE_OKONLY );
|
||||
|
||||
handled = TRUE;
|
||||
} else {
|
||||
|
|
|
@ -299,7 +299,7 @@ ceSizeIfFullscreen( CEAppGlobals* globals, HWND hWnd )
|
|||
|
||||
static XP_Bool
|
||||
mkFullscreenWithSoftkeys( CEAppGlobals* globals, HWND hDlg, XP_U16 curHt,
|
||||
XP_Bool doneOnly )
|
||||
DlgStateTask doWhat )
|
||||
{
|
||||
XP_Bool success = XP_FALSE;
|
||||
|
||||
|
@ -307,7 +307,13 @@ mkFullscreenWithSoftkeys( CEAppGlobals* globals, HWND hDlg, XP_U16 curHt,
|
|||
XP_MEMSET( &mbi, 0, sizeof(mbi) );
|
||||
mbi.cbSize = sizeof(mbi);
|
||||
mbi.hwndParent = hDlg;
|
||||
mbi.nToolBarId = doneOnly? IDM_DONE_MENUBAR:IDM_OKCANCEL_MENUBAR;
|
||||
if ( 0 != (doWhat & DLG_STATE_DONEONLY) ) {
|
||||
mbi.nToolBarId = IDM_DONE_MENUBAR;
|
||||
} else if ( 0 != (doWhat & DLG_STATE_OKONLY) ) {
|
||||
mbi.nToolBarId = IDM_OK_MENUBAR;
|
||||
} else {
|
||||
mbi.nToolBarId = IDM_OKCANCEL_MENUBAR;
|
||||
}
|
||||
mbi.hInstRes = globals->hInst;
|
||||
success = SHCreateMenuBar( &mbi );
|
||||
if ( !success ) {
|
||||
|
@ -351,14 +357,16 @@ ceDlgSetup( CeDlgHdr* dlgHdr, HWND hDlg, DlgStateTask doWhat )
|
|||
|
||||
XP_ASSERT( !!globals );
|
||||
XP_ASSERT( !!hDlg );
|
||||
/* at most one of these two should be set */
|
||||
XP_ASSERT( (doWhat & (DLG_STATE_OKONLY|DLG_STATE_DONEONLY))
|
||||
!= (DLG_STATE_OKONLY|DLG_STATE_DONEONLY));
|
||||
|
||||
GetClientRect( hDlg, &rect );
|
||||
XP_ASSERT( rect.top == 0 );
|
||||
fullHeight = rect.bottom; /* This is before we've resized it */
|
||||
|
||||
#ifdef _WIN32_WCE
|
||||
(void)mkFullscreenWithSoftkeys( globals, hDlg, fullHeight,
|
||||
(doWhat & DLG_STATE_DONEONLY) != 0);
|
||||
(void)mkFullscreenWithSoftkeys( globals, hDlg, fullHeight, doWhat);
|
||||
#elif defined DEBUG
|
||||
/* Force it to be small so we can test scrolling etc. */
|
||||
if ( globals->dbWidth > 0 && globals->dbHeight > 0) {
|
||||
|
@ -435,7 +443,8 @@ ceDoDlgHandle( CeDlgHdr* dlgHdr, UINT message, WPARAM wParam, LPARAM lParam )
|
|||
if ( editHasFocus() ) {
|
||||
SHSendBackToFocusWindow( message, wParam, lParam );
|
||||
} else if ( 0 != (BACK_KEY_UP_MAYBE & LOWORD(lParam) ) ) {
|
||||
WPARAM cmd = (0 != (dlgHdr->doWhat & DLG_STATE_DONEONLY)) ?
|
||||
WPARAM cmd = (0 != (dlgHdr->doWhat
|
||||
& (DLG_STATE_DONEONLY|DLG_STATE_OKONLY))) ?
|
||||
IDOK : IDCANCEL;
|
||||
SendMessage( dlgHdr->hDlg, WM_COMMAND, cmd, 0L );
|
||||
}
|
||||
|
|
|
@ -63,7 +63,8 @@ XP_U16 ceGetPath( CEAppGlobals* globals, CePathType typ,
|
|||
/* set vHeight to 0 to turn off scrolling */
|
||||
typedef enum { DLG_STATE_NONE = 0
|
||||
, DLG_STATE_TRAPBACK = 1
|
||||
, DLG_STATE_DONEONLY = 2
|
||||
, DLG_STATE_OKONLY = 2
|
||||
, DLG_STATE_DONEONLY = 4
|
||||
} DlgStateTask;
|
||||
typedef struct CeDlgHdr {
|
||||
CEAppGlobals* globals;
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#define IDM_MAIN_MENUBAR 120
|
||||
#define IDM_OKCANCEL_MENUBAR 121
|
||||
#define IDM_DONE_MENUBAR 122
|
||||
#define IDM_OK_MENUBAR 123
|
||||
#define IDB_ORIGIN 124
|
||||
#ifdef XWFEATURE_SEARCHLIMIT
|
||||
# define IDD_ASKHINTLIMTS 125
|
||||
|
|
|
@ -58,7 +58,8 @@ if [ ! -z "$NAME" ]; then
|
|||
fi
|
||||
|
||||
cat > $README <<EOF
|
||||
Thanks for downloading Crosswords 4.2 beta 7 for Smartphone and PocketPC.
|
||||
|
||||
Thanks for downloading Crosswords 4.2 Release Candidate 1 for Smartphone and PocketPC.
|
||||
|
||||
To install, copy the enclosed executable file ($(basename $EXE)) and dictionary file ($(basename $DICT)) into the same directory on your device using File Explorer, then double-click on the executable to launch it.
|
||||
|
||||
|
|
|
@ -152,6 +152,14 @@ BEGIN
|
|||
NOMENU
|
||||
END
|
||||
|
||||
IDM_OK_MENUBAR RCDATA
|
||||
BEGIN
|
||||
0, 1,
|
||||
I_IMAGENONE, IDOK, TBSTATE_ENABLED,
|
||||
TBSTYLE_BUTTON | TBSTYLE_AUTOSIZE, IDS_OK, 0,
|
||||
NOMENU
|
||||
END
|
||||
|
||||
IDM_DONE_MENUBAR RCDATA
|
||||
BEGIN
|
||||
0, 1,
|
||||
|
@ -914,7 +922,7 @@ BEGIN
|
|||
IDS_CANCEL "Cancel"
|
||||
IDS_OK "Ok"
|
||||
IDS_DONE "Done"
|
||||
IDS_ABOUT "Crosswords 4.2b7 (rev " SVN_REV ") "\
|
||||
IDS_ABOUT "Crosswords 4.2rc1 (rev " SVN_REV ") "\
|
||||
"for Windows Mobile. Copyright 1998-2008 by "\
|
||||
"Eric House. This software is released under the GNU "\
|
||||
"Public License.\r\r"\
|
||||
|
|
Loading…
Reference in a new issue