const wxValidator& validator, const wxString &name)
{
wxString label = (style & wxFNTP_FONTDESC_AS_LABEL) ?
- wxEmptyString : // label will be updated by UpdateFont
- wxT("Choose font");
+ wxString() : // label will be updated by UpdateFont
+ _("Choose font");
// create this button
if (!wxButton::Create( parent, id, label, pos,
}
// and handle user clicks on it
- Connect(wxEVT_COMMAND_BUTTON_CLICKED,
+ Connect(GetId(), wxEVT_COMMAND_BUTTON_CLICKED,
wxCommandEventHandler(wxGenericFontButton::OnButtonClick),
NULL, this);
void wxGenericFontButton::OnButtonClick(wxCommandEvent& WXUNUSED(ev))
{
- // update the wxFontData to be shown in the the dialog
+ // update the wxFontData to be shown in the dialog
m_data.SetInitialFont(m_selectedFont);
// create the font dialog and display it
void wxGenericFontButton::UpdateFont()
{
- if ( !m_selectedFont.Ok() )
+ if ( !m_selectedFont.IsOk() )
return;
SetForegroundColour(m_data.GetColour());