<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Custom Animati&#111;n for Menus</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Custom Animati&#111;n for Menus]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 15 Apr 2026 18:52:46 +0000</pubDate>
  <lastBuildDate>Tue, 10 Feb 2004 14:27:53 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=434</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Custom Animati&#111;n for Menus : Hello, in new version need to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=434&amp;PID=1000&amp;title=custom-animation-for-menus#1000</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 434<br /><strong>Posted:</strong> 10 February 2004 at 2:27pm<br /><br /><P>Hello, in new version need to override PainrManagers:</P><P>&nbsp;</P><FONT color=#0000ff><P>class</FONT> <FONT color=#0000ff>CXTPOfficeThemeA</FONT> : <FONT color=#0000ff>public</FONT> <FONT color=#0000ff>CXTPOfficeTheme</P></FONT><P>{</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P dir=ltr style="MARGIN-RIGHT: 0px"><FONT color=#0000ff>void</FONT> <FONT color=#880000>Animate</FONT>(<FONT color=#0000ff>CDC</FONT>* <FONT color=#808080>pDestDC</FONT>, <FONT color=#0000ff>CDC</FONT>* <FONT color=#808080>pSrcDC</FONT>, <FONT color=#0000ff>CRect</FONT> <FONT color=#808080>rc</FONT>, <FONT color=#0000ff>XTPAnimationType</FONT> <FONT color=#808080>animationType</FONT>)</P><P>{</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P><FONT color=#0000ff>int</FONT> <FONT color=#808080>nSteps</FONT> = <FONT color=#808080>m_nAnimationSteps</FONT>;</P><P><FONT color=#0000ff>int</FONT> <FONT color=#808080>nAnimationTime</FONT> = <FONT color=#808080>m_nAnimationTime</FONT>;</P><P></P><P><FONT color=#0000ff>for</FONT> (<FONT color=#0000ff>int</FONT> <FONT color=#808080>i</FONT> = 0; <FONT color=#808080>i</FONT> &lt; <FONT color=#808080>rc</FONT>.<FONT color=#880000>Height</FONT>(); </P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P><FONT color=#808080>i</FONT> += (1 + (<FONT color=#808080>rc</FONT>.<FONT color=#880000>Height</FONT>() / <FONT color=#808080>nSteps</FONT>)))</P></BLOCKQUOTE><P>{</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P><FONT color=#808080>pDestDC</FONT>-&gt;<FONT color=#880000>StretchBlt</FONT>(<FONT color=#808080>rc</FONT>.<FONT color=#808080>left</FONT>, <FONT color=#808080>rc</FONT>.<FONT color=#808080>top</FONT>, <FONT color=#808080>rc</FONT>.<FONT color=#880000>Width</FONT>(), <FONT color=#808080>i</FONT>, <FONT color=#808080>pSrcDC</FONT>, </P><P>0, 0, <FONT color=#808080>rc</FONT>.<FONT color=#880000>Width</FONT>(), <FONT color=#808080>rc</FONT>.<FONT color=#880000>Height</FONT>(), <FONT color=#a000a0>SRCCOPY</FONT>);</P><P><FONT color=#880000>Sleep</FONT>(<FONT color=#808080>nAnimationTime</FONT> / <FONT color=#808080>nSteps</FONT>);}</P></BLOCKQUOTE><P>}</P></BLOCKQUOTE><P dir=ltr>}</P></BLOCKQUOTE><P>};</P><P>&nbsp;</P><P>and set the theme<FONT color=#0000ff></P><P>CXTPPaintManager</FONT>::<FONT color=#880000>SetCustomTheme</FONT>(<FONT color=#a000a0>new</FONT> <FONT color=#0000ff>CXTPOfficeThemeA</FONT>());</P><P>&nbsp;</P><P><FONT size=2>but in CXTPPaintManager <FONT color=#880000>Animate </FONT>isn't declared as virtual, so add it yourself. In next version it will be fixed.</FONT></P><FONT color=#0000ff><P><strong>virtual</strong></FONT> <FONT color=#0000ff>void</FONT> <FONT color=#880000>Animate</FONT>(<FONT color=#0000ff>CDC</FONT>* <FONT color=#808080>pDestDC</FONT>, <FONT color=#0000ff>CDC</FONT>* <FONT color=#808080>pSrcDC</FONT>, <FONT color=#0000ff>CRect</FONT> <FONT color=#808080>rc</FONT>, <FONT color=#0000ff>XTPAnimationType</FONT> <FONT color=#808080>animationType</FONT>);</P><P>&nbsp;</P><span style="font-size:10px"><br /><br />Edited by oleg</span>]]>
   </description>
   <pubDate>Tue, 10 Feb 2004 14:27:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=434&amp;PID=1000&amp;title=custom-animation-for-menus#1000</guid>
  </item> 
  <item>
   <title><![CDATA[Custom Animati&#111;n for Menus : Hi, I was using Xtreme Toolkit...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=434&amp;PID=996&amp;title=custom-animation-for-menus#996</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=360">coradinibr</a><br /><strong>Subject:</strong> 434<br /><strong>Posted:</strong> 10 February 2004 at 8:11am<br /><br /><P>Hi,</P><P>I was using Xtreme Toolkit Standard and my company changed to Professional. <IMG src="http://forum.codejock.com/smileys/smiley17.gif" border="0"></P><P>I am trying to set custom animation as I did with CXTCoolMenu but I cannot figure out how to do it !!! <IMG src="http://forum.codejock.com/smileys/smiley19.gif" border="0"></P><P>In the documentation of Xtreme Toolkit Pro, there is a sample to set the customized animation but the variable m_nAnimationType&nbsp;is not a member of CXTCoolMenu !!!</P><P>Other information that does not match is that in the enumeration XTPAnimationType there is any definition for custom animations.</P><P>I've the overriden function for the custom animation and called the CXTAnimationMemDC::SetCustomAnimation( function ), but is does not call the the function for any type of animation, even the defaults.</P><P>Is it possible to set custom animation in the Professional version ?</P><P>Thanks in advance.</P><P>Evandro Coradini</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Tue, 10 Feb 2004 08:11:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=434&amp;PID=996&amp;title=custom-animation-for-menus#996</guid>
  </item> 
 </channel>
</rss>