First, I want to say thanks for a great library. I have been using your product since 1999 and CodeJock has definately matured into a great component provider!
Now on to the problem:
I am using CXTPTaskPanel and have two groups. The upper group is a normal text link group, the bottom group contains an CEdit, CComboBox, and an embedded dialog (just like sample, except two groups). When I collapse/expand the top group, the dialog does not redraw correctly; thus, I get portions of the dialog controls on top of each other. Here is my code to embed the dialog:
CXTPTaskPanelGroup* pGroup = m_wndTaskPanel.AddGroup(0);
pGroup->SetCaption(_T( "Filter by following criteria"));
pGroup->SetSpecialGroup();
pGroup->SetExpandable(FALSE);
pGroup->AddTextItem(_T( " Field to filter:"));
m_cbField.Create(WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | CBS_DROPDOWNLIST | CBS_SORT, CRect(0, 0, 0, 18), &m_wndTaskPanel, 0);
m_cbField.SetFont(XTPPaintManager()->GetRegularFont());
pGroup->AddControlItem(m_cbField);
pGroup->AddTextItem(_T(" A word or phrase in the field:"));
m_edtSearchString.CreateEx(WS_EX_CLIENTEDGE, _T( "Edit"), NULL, WS_CHILD | WS_VISIBLE, CRect(0, 0, 0, 20), &m_wndTaskPanel, 0);
m_edtSearchString.SetFont(XTPPaintManager()->GetRegularFo nt());
pGroup->AddControlItem(m_edtSearchString);
pGroup->AddTextItem(_T( " "));
m_dlgFilter.Create(IDD_START_FILTER_PANE, &m_wndTaskPanel);
CXTPTaskPanelGroupItem* pItem = pGroup->AddControlItem(m_dlgFilter);
pItem->GetMargins().SetRect(0, 0, 0, 0);
m_dlgFilter.SetItem(pItem);
Under Windows XP if I turn off animation for the top group everything works fine (animation on causes problem). Under Windows 2000 the dialog is fubar regardless of the top group animation setting. I have tried to invalidate, etc. but I am getting nowhere... It happens when expanding the top group.
The group combo box seems to get drawn over the dialog. Maybe I will just make the whole group a dialog and include the edit and combo box.
Any ideas?
|