git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32983
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxRect r(0,0,bw, bh);
wxRendererNative& renderer = wxRendererNative::Get();
wxRect r(0,0,bw, bh);
wxRendererNative& renderer = wxRendererNative::Get();
#ifdef __WXGTK__
wxColour magic(255,0,255);
dc.SetBrush( wxBrush( magic ) );
#ifdef __WXGTK__
wxColour magic(255,0,255);
dc.SetBrush( wxBrush( magic ) );
wxBitmap bmpSel(bw, bh);
dc.SelectObject(bmpSel);
wxBitmap bmpSel(bw, bh);
dc.SelectObject(bmpSel);
#ifdef __WXGTK__
dc.SetBrush( wxBrush( magic ) );
dc.SetPen( *wxTRANSPARENT_PEN );
#ifdef __WXGTK__
dc.SetBrush( wxBrush( magic ) );
dc.SetPen( *wxTRANSPARENT_PEN );
bmpSel.SetMask( mask );
#else
renderer.DrawComboBoxDropButton(this, dc, r, wxCONTROL_PRESSED);
bmpSel.SetMask( mask );
#else
renderer.DrawComboBoxDropButton(this, dc, r, wxCONTROL_PRESSED);
SetBitmapSelected(bmpSel);
}
SetBitmapSelected(bmpSel);
}
allowedChars.Add(wxString(*p++, 1));
}
allowedChars.Add(wxString(*p++, 1));
}
wxTextValidator tv(wxFILTER_INCLUDE_CHAR_LIST);
tv.SetIncludes(allowedChars);
wxTextValidator tv(wxFILTER_INCLUDE_CHAR_LIST);
tv.SetIncludes(allowedChars);
if (m_currentDate.IsValid())
m_txt->SetValue(m_currentDate.Format(m_format));
if (m_currentDate.IsValid())
m_txt->SetValue(m_currentDate.Format(m_format));
wxID_ANY,
wxEmptyString,
wxDefaultPosition,
wxID_ANY,
wxEmptyString,
wxDefaultPosition,
- wxSize(250, -1),
- 0,
- wxTextValidator(wxFILTER_NONE, &m_command)
+ wxSize(250, wxDefaultCoord),
+ 0
+#if wxUSE_VALIDATORS
+ ,wxTextValidator(wxFILTER_NONE, &m_command)
+#endif
);
sizerH->Add(command,
wxSizerFlags(1).Align(wxALIGN_CENTER_VERTICAL));
);
sizerH->Add(command,
wxSizerFlags(1).Align(wxALIGN_CENTER_VERTICAL));
-WX_DEFINE_ARRAY(wxColWidthInfo *, ColWidthArray);
+WX_DEFINE_ARRAY_PTR(wxColWidthInfo *, ColWidthArray);
//-----------------------------------------------------------------------------
// wxListItemData (internal)
//-----------------------------------------------------------------------------
// wxListItemData (internal)
// calculate the width of the item and adjust the max column width
wxColWidthInfo *pWidthInfo = m_aColWidths.Item(item.GetColumn());
// calculate the width of the item and adjust the max column width
wxColWidthInfo *pWidthInfo = m_aColWidths.Item(item.GetColumn());
- int width = 0;
-
- width = GetItemWidthWithImage(&item);
+ int width = GetItemWidthWithImage(&item);
item.SetWidth(width);
if (width > pWidthInfo->nMaxWidth)
pWidthInfo->nMaxWidth = width;
item.SetWidth(width);
if (width > pWidthInfo->nMaxWidth)
pWidthInfo->nMaxWidth = width;