<?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 : Migration Problem from XTP8 to XTP12</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Migration Problem from XTP8 to XTP12]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 20:16:18 +0000</pubDate>
  <lastBuildDate>Tue, 16 Dec 2008 01:28:46 +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=12846</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[Migration Problem from XTP8 to XTP12 : Another option is to set   info.dwItemData...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12846&amp;PID=43696&amp;title=migration-problem-from-xtp8-to-xtp12#43696</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12846<br /><strong>Posted:</strong> 16 December 2008 at 1:28am<br /><br />Another option is to set <DIV>&nbsp;</DIV><DIV>info.dwItemData with ::SetMenuItemInfo and then retieve it with pControl-&gt;GetTag();</DIV>]]>
   </description>
   <pubDate>Tue, 16 Dec 2008 01:28:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12846&amp;PID=43696&amp;title=migration-problem-from-xtp8-to-xtp12#43696</guid>
  </item> 
  <item>
   <title><![CDATA[Migration Problem from XTP8 to XTP12 :   Thank you for your advice.I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12846&amp;PID=43673&amp;title=migration-problem-from-xtp8-to-xtp12#43673</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3807">lion</a><br /><strong>Subject:</strong> 12846<br /><strong>Posted:</strong> 15 December 2008 at 4:20am<br /><br />Thank you for your advice.<br>I tried it, but did not quite get to a solution.<br><br>I wanted to write the index of the font popup menu in the MENUINFO of the font version menuitem, in order to be able to retrieve it later again, to know which font was selected.<br><br>This is how the menu is created:<br><br>HMENU hMenu = CreateMenu(); // the fonts menu<br>HMENU hSubMenu; // the font versions menu<br>for (i = 1; i &lt;= NumItems; i++) <br>&nbsp;&nbsp;&nbsp; hSubMenu = CreatePopupMenu();<br>&nbsp;&nbsp;&nbsp; for (j = 0; j &lt; versionNum; j++) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; AppendMenu(hSubMenu, MF_STRING, versionCounter++, versionLabels&#091;j&#093;);<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; AppendMenu(hMenu, MF_STRING|MF_POPUP, (UINT)hSubMenu, itemName);<br>}<br><br>I tried setting the MENUINFO on the hSubMenu but the values are not tobe found when evaluating the "OnToolbarCtrlExec()" function.<br>how do I get access to this with the code mentioned above earlier?<br><br>Thanx in advance!<br>Cheers<br>Björn<br><br>PS:<br>is there a way to retrieve this original HMENU from the NMHDR* pNMHDR pointer inside "OnToolbarCtrlExec()" function ?]]>
   </description>
   <pubDate>Mon, 15 Dec 2008 04:20:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12846&amp;PID=43673&amp;title=migration-problem-from-xtp8-to-xtp12#43673</guid>
  </item> 
  <item>
   <title><![CDATA[Migration Problem from XTP8 to XTP12 : Hello,  Yes it was changed in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12846&amp;PID=43397&amp;title=migration-problem-from-xtp8-to-xtp12#43397</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12846<br /><strong>Posted:</strong> 03 December 2008 at 12:05pm<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>Yes it was changed in some 9-10.x version.</DIV><DIV>OnExecute event is called after Popup is already closed and "ControlPopup" already set to NULL :(</DIV><DIV>&nbsp;</DIV><DIV>If you build this menu dynamically you can use Tag property to save parent information. </DIV><DIV>&nbsp;</DIV><DIV>Or Create button class for these controls, override OnExecute method, etc.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 03 Dec 2008 12:05:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12846&amp;PID=43397&amp;title=migration-problem-from-xtp8-to-xtp12#43397</guid>
  </item> 
  <item>
   <title><![CDATA[Migration Problem from XTP8 to XTP12 :     Hello,shortly we were...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12846&amp;PID=43386&amp;title=migration-problem-from-xtp8-to-xtp12#43386</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3807">lion</a><br /><strong>Subject:</strong> 12846<br /><strong>Posted:</strong> 03 December 2008 at 4:28am<br /><br />Hello,<br>shortly we were mirgating from xtp8 to xtp12. There were hardly any issues. But now I have discovered a problem with popupmenus. In the picture u can see what the menu looks like.<br><br><img src="uploads/20081203_043107_Unbenannt.jpg" height="112" width="413" border="0"><br><br>And this is what we used to do: when selecting a font with a style popupmenu (like in the screenshot) we fetched the index of the parent control to know which font was selected in the first place. Since we knew that a style (e.g. italic) was selected, but we did not know in which font. So knowing "italic" we got the parent's index and that way we knew what font was selected.<br>This way we get the FontFamilyID and the style that was selected from the popup.<br>Here is part of the code that is executed on popupmenu-selection:<br><br><blockquote>void CMainFrm::OnToolbarCtrlExec(UINT id, NMHDR* pNMHDR, LRESULT* pResult)<br>{<br>&nbsp;&nbsp;&nbsp; NMXTPCONTROL* tagNMCONTROL = (NMXTPCONTROL*)pNMHDR;<br><br>&nbsp;&nbsp;&nbsp; CXTPControl* pControl = tagNMCONTROL-&gt;pControl;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; //items of font submenu are handled here, because we need an index<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; long id = pControl-&gt;GetIndex();<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPPopupBar* pPopupBar = (CXTPPopupBar*)pControl-&gt;GetParent();<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPControl* pParentControl = pPopupBar-&gt;GetControlPopup();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; long startIndex = pParentControl-&gt;GetControls()-&gt;FindControl(FONT_ITEMS_ID_START)-&gt;GetIndex();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; long familyId = pParentControl-&gt;GetIndex()-startIndex-1;<br><br></blockquote>now this does not work anymore in xtp12.<br>The Problem is that "pParentControl" (as in the sourcecode above) is suddenly always NULL.<br>Is that a problem here or is that a problem with the code generating the popup to begin with?<br><br>Thanx very much for your help!<br>Cheers Björn<br>]]>
   </description>
   <pubDate>Wed, 03 Dec 2008 04:28:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12846&amp;PID=43386&amp;title=migration-problem-from-xtp8-to-xtp12#43386</guid>
  </item> 
 </channel>
</rss>