a suggestion for the MSFT Mobile shell team:
it would be nice to provide an improved/extended version of MessageBox -
let's call it MessageBoxEx - with at least the following feature:
- two additionnal optional parameter to customise the soft-keys strings
if those parameters are NULL, the default strings are used (i.e. same as the
current MessageBox).
if one or both of those parameters are not NULL, they are pointer to strings
used for the left and right soft-keys, and overwrite the default.
optionally it could be nice to specify command-id's to overwrite the
defaults, but that's not necessary, since MessageBox is a modal dialog.
this extension would allow using the same internal features as MessageBox
(i.e. Alerts sound & icons, etc), while changing the soft-key text to
something custom, more appropriate than the default limited set of choices
such as Ok/Cancel , Yes/No etc.
Choices such as Now/Later, "Cancel/I Agree" (e.g. for a licencing
agreement), etc would be possible.
what do you think?
also, naturally, MessageBox needs to be fixed on Pocket PC, since it is
seriously broken especially when Pocket PC's are used in Landscape
orientation. in case you missed it, here is a recap of the problems:
On Pocket PC WM5, soft-keys cannot be used to answer the question from a
MessageBox (or to close it).
On Pocket PC WM5 and 2003 Second Edition, when in Landscape orientation,
MessageBox does not use the full width of the display, so you messages
usually get truncated, and in some cases the buttons get truncated or
totally hidden. The only workaround is to reduce the size of your messages,
which may be a problem with localized applications. MsgBox can use the full
width of the display in Landscape orientation, so you can see longer
messages. This is especially useful in applications localized in other
languages.
On Pocket PC, MessageBox just truncates the text if it is too long to be
entirely displayed (not the case on Smartphone). Sometimes, MessageBox even
displays the buttons outside of the screen, making the dialog completely
un-usable. MsgBox makes text scrollable if text is too long to be entirely
displayed (like on Smartphone). This is very useful, especially on the new
square-screen Pocket PC WM5 and 2003 Second Edition devices. A vertical
scroll-bar or the UP/DOWN D-pad buttons can be used to scroll the text when
it is scrollable.
On Pocket PC WM5 and 2003 Second Edition, MessageBox does not handle the SIP
correctly. For example, if the SIP is up, MessageBox sometimes display a
dialog with the OK/Cancel buttons hidden under the SIP. This can be very
confusing to average users, and it also violates MSFT's own guidelines for
Logo-certified applications. MsgBox handles the SIP correctly, and it
automatically lowers the SIP when it activates.