// ---------------------------------------------------------------------------
/* Macro for avoiding #ifdefs when value have to be different depending on size of
- device we display on
+ device we display on - take it from something like wxDesktopPolicy in the future
*/
#if defined(__SMARTPHONE__)
#endif
// wxUSE_VALIDATORS
+ // smart phones does not support or do not waste space for wxButtons
#ifdef __SMARTPHONE__
SetRightMenu(wxID_CANCEL, _("Cancel"));
#endif
// 4) buttons
- topsizer->Add( CreateButtonSizer( style ), 0, wxCENTRE | wxALL, 10 );
+ topsizer->Add( CreateButtonSizer( style ), 0, wxEXPAND | wxALL, 10 );
#endif // !__SMARTPHONE__
topsizer->SetSizeHints( this );
topsizer->Fit( this );
- if ( ( style & wxCENTRE ) == wxCENTRE )
+ if ( style & wxCENTRE )
Centre( wxBOTH );
m_textctrl->SetSelection(-1, -1);
#endif
// wxUSE_VALIDATORS
+// ----------------------------------------------------------------------------
+// wxPasswordEntryDialog
+// ----------------------------------------------------------------------------
+
+IMPLEMENT_CLASS(wxPasswordEntryDialog, wxTextEntryDialog)
+
+wxPasswordEntryDialog::wxPasswordEntryDialog(wxWindow *parent,
+ const wxString& message,
+ const wxString& caption,
+ const wxString& value,
+ long style,
+ const wxPoint& pos)
+ : wxTextEntryDialog(parent, message, caption, value,
+ style | wxTE_PASSWORD, pos)
+{
+ // Only change from wxTextEntryDialog is the password style
+}
+
#endif // wxUSE_TEXTDLG