<?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 : 12.1.1 menu accelerator keys problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : 12.1.1 menu accelerator keys problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 22 Apr 2026 08:29:27 +0000</pubDate>
  <lastBuildDate>Mon, 05 Jan 2009 02:02:25 +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=13051</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[12.1.1 menu accelerator keys problem : Hi,  Where you read customization...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13051&amp;PID=44101&amp;title=12-1-1-menu-accelerator-keys-problem#44101</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13051<br /><strong>Posted:</strong> 05 January 2009 at 2:02am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Where you read customization from ? by default LoadCommandBars load it from registry and DoPropExchange not even called.</DIV>]]>
   </description>
   <pubDate>Mon, 05 Jan 2009 02:02:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13051&amp;PID=44101&amp;title=12-1-1-menu-accelerator-keys-problem#44101</guid>
  </item> 
  <item>
   <title><![CDATA[12.1.1 menu accelerator keys problem : After upgrading to 12.1.1, I did...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13051&amp;PID=44057&amp;title=12-1-1-menu-accelerator-keys-problem#44057</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3002">rconn</a><br /><strong>Subject:</strong> 13051<br /><strong>Posted:</strong> 31 December 2008 at 11:24pm<br /><br />After upgrading to 12.1.1, I did a new install of our app and found that all of the accelerator keys were missing from the menu.<DIV>&nbsp;</DIV><DIV>I traced it to&nbsp; XTPShortcutManager.cpp.&nbsp; At line 1416 in DoPropExchange, you're calling m_pAccelTable-&gt;RemoveAll() before&nbsp;checking to see if there is a saved accelerator table.&nbsp; But the first time the app is run, there is no existing table, so the default accelerator table is destroyed and replaced with an empty one.&nbsp; When the app exits, that empty table is saved, so the only way to ever get accelerator keys is to enter them manually in the customize menu dialog.</DIV><DIV>&nbsp;</DIV><DIV>I made a change to move the RemoveAll() call down after nAccelSize is set; i.e.:</DIV><DIV>&nbsp;</DIV><FONT size=1><OL><LI><DIV align=left></FONT><FONT color=#0000ff size=1><FONT color=#0000ff size=1>if</FONT></FONT><FONT size=1> (pPX-&gt;IsAllowBlobValues())</DIV></LI><LI><DIV align=left>{</DIV></LI><LI><DIV align=left></FONT><FONT color=#0000ff size=1><FONT color=#0000ff size=1>&nbsp; int</FONT></FONT><FONT size=1> nAccelSize = (</FONT><FONT color=#0000ff size=1><FONT color=#0000ff size=1>int</FONT></FONT><FONT size=1>)pPX-&gt;ReadCount();</DIV></LI><LI><DIV align=left></FONT><FONT color=#0000ff size=1><FONT color=#0000ff size=1>&nbsp; if</FONT></FONT><FONT size=1> ( nAccelSize ) {</DIV></LI><LI><DIV align=left>&nbsp;&nbsp;&nbsp; m_pAccelTable-&gt;RemoveAll();</DIV></LI><LI><DIV align=left>&nbsp;&nbsp;&nbsp; LPACCEL lpAccel = </FONT><FONT color=#0000ff size=1><FONT color=#0000ff size=1>new</FONT></FONT><FONT size=1> ACCEL&#091;nAccelSize&#093;;</DIV></LI><LI><DIV align=left>&nbsp;&nbsp;&nbsp; pPX-&gt;Read(_T(</FONT><FONT color=#a31515 size=1><FONT color=#a31515 size=1>"Data"</FONT></FONT><FONT size=1>), lpAccel, nAccelSize* </FONT><FONT color=#0000ff size=1><FONT color=#0000ff size=1>sizeof</FONT></FONT><FONT size=1>(ACCEL));</DIV></LI><LI><DIV align=left>&nbsp;&nbsp;&nbsp; UpdateAcellTable(lpAccel, nAccelSize);</DIV></LI><LI><DIV align=left></FONT><FONT color=#0000ff size=1><FONT color=#0000ff size=1>&nbsp;&nbsp;&nbsp; delete</FONT></FONT><FONT size=1>&#091;&#093; lpAccel;</DIV></LI><LI><DIV align=left>}</DIV></LI><LI><DIV align=left></FONT>&nbsp;</DIV></LI></OL>]]>
   </description>
   <pubDate>Wed, 31 Dec 2008 23:24:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13051&amp;PID=44057&amp;title=12-1-1-menu-accelerator-keys-problem#44057</guid>
  </item> 
 </channel>
</rss>