Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPTaskPanel Redraw Problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPTaskPanel Redraw Problem

 Post Reply Post Reply
Author
Message
mwerner View Drop Down
Newbie
Newbie


Joined: 24 March 2006
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote mwerner Quote  Post ReplyReply Direct Link To This Post Topic: CXTPTaskPanel Redraw Problem
    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?

Back to Top
mwerner View Drop Down
Newbie
Newbie


Joined: 24 March 2006
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote mwerner Quote  Post ReplyReply Direct Link To This Post Posted: 24 March 2006 at 4:35pm
I added the CEdit and CComboBox to the dialog, removed them from the group, and everyhting works fine. No longer a problem for me.
Back to Top
mmh View Drop Down
Newbie
Newbie


Joined: 03 December 2010
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote mmh Quote  Post ReplyReply Direct Link To This Post Posted: 03 December 2010 at 5:10am
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;...  Ouch
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.