if ( !HasFlag(wxCAL_SEQUENTIAL_MONTH_SELECTION) )
{
CreateYearSpinCtrl();
- m_staticYear = new wxStaticText(GetParent(), wxID_ANY, m_date.Format(_T("%Y")),
+ m_staticYear = new wxStaticText(GetParent(), wxID_ANY, m_date.Format(wxT("%Y")),
wxDefaultPosition, wxDefaultSize,
wxALIGN_CENTRE);
CreateMonthComboBox();
- m_staticMonth = new wxStaticText(GetParent(), wxID_ANY, m_date.Format(_T("%B")),
+ m_staticMonth = new wxStaticText(GetParent(), wxID_ANY, m_date.Format(wxT("%B")),
wxDefaultPosition, wxDefaultSize,
wxALIGN_CENTRE);
}
// created/shown/hidden accordingly
wxASSERT_MSG( (style & wxCAL_SEQUENTIAL_MONTH_SELECTION) ==
(m_windowStyle & wxCAL_SEQUENTIAL_MONTH_SELECTION),
- _T("wxCAL_SEQUENTIAL_MONTH_SELECTION can't be changed after creation") );
+ wxT("wxCAL_SEQUENTIAL_MONTH_SELECTION can't be changed after creation") );
wxControl::SetWindowStyleFlag(style);
}
void wxGenericCalendarCtrl::CreateYearSpinCtrl()
{
m_spinYear = new wxSpinCtrl(GetParent(), wxID_ANY,
- GetDate().Format(_T("%Y")),
+ GetDate().Format(wxT("%Y")),
wxDefaultPosition,
wxDefaultSize,
wxSP_ARROW_KEYS | wxCLIP_SIBLINGS,
if ( AllowYearChange() )
{
if ( !m_userChangedYear )
- m_spinYear->SetValue(m_date.Format(_T("%Y")));
+ m_spinYear->SetValue(m_date.Format(wxT("%Y")));
}
}
+ VERT_MARGIN;
#ifdef __WXMAC__
// the spin control get clipped otherwise
- width += 10;
+ width += 25;
#endif
wxCoord w2 = bestSizeCombo.x + HORZ_MARGIN + GetCharWidth()*6;
{
// don't use wxDate::Format() which prepends 0s
unsigned int day = date.GetDay();
- wxString dayStr = wxString::Format(_T("%u"), day);
+ wxString dayStr = wxString::Format(wxT("%u"), day);
wxCoord width;
dc.GetTextExtent(dayStr, &width, NULL);
break;
default:
- wxFAIL_MSG(_T("unknown border type"));
+ wxFAIL_MSG(wxT("unknown border type"));
}
}
break;
default:
- wxFAIL_MSG(_T("unknown hittest code"));
+ wxFAIL_MSG(wxT("unknown hittest code"));
// fall through
case wxCAL_HITTEST_NOWHERE:
wxDateTime target;
switch ( event.GetKeyCode() )
{
- case _T('+'):
+ case wxT('+'):
case WXK_ADD:
target = m_date + wxDateSpan::Year();
if ( ChangeYear(&target) )
}
break;
- case _T('-'):
+ case wxT('-'):
case WXK_SUBTRACT:
target = m_date - wxDateSpan::Year();
if ( ChangeYear(&target) )
void wxGenericCalendarCtrl::SetHoliday(size_t day)
{
- wxCHECK_RET( day > 0 && day < 32, _T("invalid day in SetHoliday") );
+ wxCHECK_RET( day > 0 && day < 32, wxT("invalid day in SetHoliday") );
wxCalendarDateAttr *attr = GetAttr(day);
if ( !attr )
void wxGenericCalendarCtrl::Mark(size_t day, bool mark)
{
- wxCHECK_RET( day > 0 && day < 32, _T("invalid day in Mark") );
+ wxCHECK_RET( day > 0 && day < 32, wxT("invalid day in Mark") );
const wxCalendarDateAttr& m = wxCalendarDateAttr::GetMark();
if (mark) {