+ case _T('\n'):
+ if (!line.IsEmpty())
+ {
+ wxStaticText *s1 = new wxStaticText( this, -1, line );
+ box->Add( s1 );
+ line = wxT("");
+ }
+ else
+ {
+ box->Add( 5, y );
+ }
+ break;
+
+ case _T('&'):
+ // this is used as accel mnemonic prefix in the wxWindows
+ // controls but in the static messages created by
+ // CreateTextSizer() (used by wxMessageBox, for example), we
+ // don't want this special meaning, so we need to quote it
+ line += _T('&');
+
+ // fall through to add it normally too
+
+ default:
+ line += message[pos];