![]() |
CXTPTaskPanel Redraw Problem |
Post Reply ![]() |
Author | |
mwerner ![]() Newbie ![]() Joined: 24 March 2006 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() Posted: 24 March 2006 at 2:39pm |
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? |
|
![]() |
|
mwerner ![]() Newbie ![]() Joined: 24 March 2006 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
I added the CEdit and CComboBox to the dialog, removed them from the group, and everyhting works fine. No longer a problem for me.
|
|
![]() |
|
mmh ![]() Newbie ![]() Joined: 03 December 2010 Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() |
I am also facing the same problem,.
there are 3 groups.,
one CXTPTaskPanelGroup contains 3 items,.
1. first item created using AddText() -
2. Added a Static control
3. a treeview,.
when animation happens, the sencond item "static control" is drawn over the treeview too... any help;...
![]() |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |