Temporary fix for a bug in win32cpp that makes ListViews fail.

This commit is contained in:
Daniel Önnerby 2008-05-06 20:47:02 +00:00
parent 57dd8ed81e
commit 42d3a4e097

View File

@ -55,9 +55,13 @@ using namespace musik::cube;
void TracklistView::OnCreated()
{
this->infoView = this->AddChild(new TracklistInfoView());
this->listView = this->AddChild(new ListView());
//this->listView = this->AddChild(new ListView());
// BUG: Workaround of a bug in win32cpp. Create the listView in a Frame instead
this->listView = new ListView();
Frame* listViewFrame = this->AddChild(new Frame(this->listView));
this->SetChildAlignment(this->infoView, ChildAlignCenter);
this->SetChildFill(this->infoView, false);
this->SetFlexibleChild(listView);
this->SetFlexibleChild(listViewFrame);
}