When I wanna add a ListHeader to listbox ,CELayoutEditor throws a exception
Code: Select all
Description: Error
Exception Location: EditorDocument::GetRelevantProperties
Exception Message: ListHeader::getSortSegment - Sort segment was invalid! (No segments are attached to the ListHeader?)
Exception Filename: ..\..\..\src\elements\CEGUIListHeader.cpp
Exception Line: 165
16/11/2009 18:56:09 (Std) EditorDocument::SelectWindow - Newselected: 'DefaultGUISheet/FrameWindow/RoomListbox/ListHeader'
Sorry for trouble you. But I am really unfamiliar with these list widget.I check the source code,found the exception come from here.But I don't know why?
Code: Select all
/*************************************************************************
Return the sort-key segment.
*************************************************************************/
ListHeaderSegment& ListHeader::getSortSegment(void) const
{
if (!d_sortSegment){
throw InvalidRequestException("ListHeader::getSortSegment - Sort segment was invalid! (No segments are attached to the ListHeader?)");
}
else{
return *d_sortSegment;
}
}
And I searched the google and forums ,but came out no results(only serched a same resulthttp://www.cegui.org.uk/phpBB2/viewtopic.php?f=7&t=3406)
Are there any people know where is my mistake?Any help will be helpful!Thank you@0@