Print Page | Close Window

CXTPTaskPanel /setAnimation

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1935
Printed Date: 07 November 2025 at 2:39pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPTaskPanel /setAnimation
Posted By: andreaswill
Subject: CXTPTaskPanel /setAnimation
Date 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



Replies:
Posted By: Oleg
Date Posted: 10 March 2005 at 9:14am

I hope you have

pGoup->AddControlItem(m_wndPropertyGrid.);

?



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: andreaswill
Date 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



Posted By: Oleg
Date 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


Posted By: andreaswill
Date Posted: 11 March 2005 at 10:04am

Hello Oleg

thank you, it works fine.

Andreas




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net