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

CXTPTaskPanel /setAnimation

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


Joined: 29 September 2004
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote andreaswill Quote  Post ReplyReply Direct Link To This Post Topic: CXTPTaskPanel /setAnimation
    Posted: 08 March 2005 at 2:55am
Hello,

i use the follwing code :

    m_wndTaskPanel.Create(WS_CHILD|WS_VISIBLE|WS_CLIPSIBLINGS|WS _CLIPCHILDREN rc, this, 0);
    m_wndTaskPanel.SetMargins(0, 0, 0, 0, 0);
    m_wndTaskPanel.SetAnimation( xtpTaskPanelAnimationNo );
.
.
.
 if ( m_wndPropertyGrid.Create( rc, &m_wndTaskPanel, IDC_PROPERTYGRID ) )
    {
        m_wndPropertyGrid.SetOwner( &m_wndTaskPanel );
        m_wndPropertyGrid.ShowHelp( FALSE );

    }
    CXTPTaskPanelGroup* pGroup = m_wndTaskPanel.AddGroup(0);
    pGroup->SetCaption(_T("Properties"));
    pGroup->SetExpanded(TRUE );

The problem is, when setting animation to  xtpTaskPanelAnimationNo, the propertygird isn't draw. I nserted dialogs too. the same problem. I don't need the animation. What must i do to get the correct behaviour.

thanks
Andreas
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 10 March 2005 at 9:14am

I hope you have

pGoup->AddControlItem(m_wndPropertyGrid.);

?

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
andreaswill View Drop Down
Newbie
Newbie


Joined: 29 September 2004
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote andreaswill Quote  Post ReplyReply Direct Link To This Post Posted: 10 March 2005 at 11:21am

didn't i mention that it works when using xtpTaskPanelAnimationYes. Would it if i wouldn't have added the proprtygrid to the group.

 

cheers

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 11 March 2005 at 2:34am

I see two solutions

1.

call m_wndTaskPanel.SetAnimation(xtpTaskPanelAnimationNo);

after you create this item

2.

Set size of item:

CXTPTaskPanelGroupItem* pGridItem = pGroupSystem->AddControlItem(m_wndPropertyGrid);
pGridItem->SetSize(CSize(0, 120));

 

 

You can play with cusotm colors of grid:

 m_wndPropertyGrid.SetCustomColors(-1, -1,
  m_wndTaskPanel.GetPaintManager()->GetGroupCol ors(0)->clrHead.clrDark, -1, -1,
  m_wndTaskPanel.GetPaintManager()->GetGroupCol ors(0)->clrHeadTextNormal);

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
andreaswill View Drop Down
Newbie
Newbie


Joined: 29 September 2004
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote andreaswill Quote  Post ReplyReply Direct Link To This Post Posted: 11 March 2005 at 10:04am

Hello Oleg

thank you, it works fine.

Andreas

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.063 seconds.