+ bool is_pda = (wxSystemSettings::GetScreenType() <= wxSYS_SCREEN_PDA);
+
+ wxString text = message;
+
+ // I admit that this is complete bogus, but it makes
+ // message boxes work for pda screens temporarily..
+ int max_width = -1;
+ if (is_pda)
+ {
+ max_width = wxSystemSettings::GetMetric( wxSYS_SCREEN_X ) - 25;
+ text += wxT('\n');
+ }
+
+
+ wxBoxSizer *box = new wxBoxSizer( wxVERTICAL );
+
+ // get line height for empty lines
+ int y = 0;
+ wxFont font( GetFont() );
+ if (!font.Ok())
+ font = *wxSWISS_FONT;
+ GetTextExtent( wxT("H"), (int*)NULL, &y, (int*)NULL, (int*)NULL, &font);