summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5088276)
to avoid scrolling problem when Windows effects are switched on.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34624
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
long style,
const wxValidator& validator, const wxString& name)
{
long style,
const wxValidator& validator, const wxString& name)
{
- if (wxListBox::Create(parent, id, pos, size, n, choices,
- style | wxLB_OWNERDRAW, validator, name))
- {
- SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW));
- return true;
- }
- else
- return false;
+ return wxListBox::Create(parent, id, pos, size, n, choices,
+ style | wxLB_OWNERDRAW, validator, name);
}
bool wxCheckListBox::Create(wxWindow *parent, wxWindowID id,
}
bool wxCheckListBox::Create(wxWindow *parent, wxWindowID id,
long style,
const wxValidator& validator, const wxString& name)
{
long style,
const wxValidator& validator, const wxString& name)
{
- if (wxListBox::Create(parent, id, pos, size, choices,
- style | wxLB_OWNERDRAW, validator, name))
- {
- SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW));
- return true;
- }
- else
- return false;
+ return wxListBox::Create(parent, id, pos, size, choices,
+ style | wxLB_OWNERDRAW, validator, name);
}
// misc overloaded methods
}
// misc overloaded methods
+ // Necessary to prevent scroll problems within a notebook with Windows
+ // effects enabled
+ SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW));
+
// initialize the contents
for ( int i = 0; i < n; i++ )
{
// initialize the contents
for ( int i = 0; i < n; i++ )
{