Edit boxes in WM 5 Pocket PC emulator


Hi,

Looking at the new documentation (With the WM 5 SDK) for edit boxes,
nothing has changed, however in the emulator, the behavior is different than
previous versions of Windows Mobile:

In a single-line edit box, the normal behavior is to press the default button
of a containing dialog if the enter key is pressed.

This doesn't happen on the WM5 emulator--What happens is you get a beep.

For example, click on Owner on the Today screen to get the Owner Information
dialog box. In previous versions (and as documented) when you hit return in a
single-line edit box, the dialog box will be closed--This doesn't happen in the
WM 5 emulator.

So is this a bug or a feature? Is this a change from the old policy?
(I am speculating that it might be an intentional change, but I'd like to know for
sure, and if it is intentional, to have it documented, as this does change the user
experience, and hence render instructions to a user incorrect for existing software
that is ported to WM 5.)

Thanks,

Almon B. Strowger

[1078 byte] By [AlmonB.Strowger] at [2008-2-8]
# 1
We are looking into this and should have an answer shortly.
CarlBrochu at 2007-9-9 > top of Msdn Tech,Smart Device Development,Device Emulator General...
# 2

This was actually not a change in the edit box behavior, but on the dialog manager behavior. In the past it was the case that if a dialog control didn’t handle VK_RETURN (such as controls that don’t return DLGC_WANTALLKEYS from WM_GETDLGCODE), the dialog manager would always cause the dialog to end and return, with return value corresponding to the button’s ID if the focus was on a DLGC_DEFPUSHBUTTON, or to the default ID otherwise.

Now, the dialog manager only causes the dialog to end if VK_RETURN is not handled by control in focus, AND it is either a DLGC_DEFPUSHBUTTON, a DLGC_STATIC or the dialog itself.

AnandR at 2007-9-9 > top of Msdn Tech,Smart Device Development,Device Emulator General...