<?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 : CFormView in docking pane, with command bars</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : CFormView in docking pane, with command bars]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 13:00:54 +0000</pubDate>
  <lastBuildDate>Fri, 22 Feb 2013 11:54:44 +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=10004</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[CFormView in docking pane, with command bars :   I am having a similar problem....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10004&amp;PID=69750&amp;title=cformview-in-docking-pane-with-command-bars#69750</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1284">franji1</a><br /><strong>Subject:</strong> 10004<br /><strong>Posted:</strong> 22 February 2013 at 11:54am<br /><br />I am having a similar problem.&nbsp; The Active MDI frame has accelerator keys for normal ASCII characters like '=' and '!' (it's a graphical editor, not text).&nbsp; But then I have a docking pane that has a grid view with an edit control, so I am unable to enter these key strokes because the active MDI is "translating" these key strokes for ITS purpose&nbsp;(MDI view&nbsp;does NOT have focus, the edit contol in my docking pane does).<div>&nbsp;</div><div>Also,&nbsp;when the user&nbsp;switches the active MDI child to a different type that DOESN'T have this accelerator table, the edit control in the docking pane behaves&nbsp;properly.</div>]]>
   </description>
   <pubDate>Fri, 22 Feb 2013 11:54:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10004&amp;PID=69750&amp;title=cformview-in-docking-pane-with-command-bars#69750</guid>
  </item> 
  <item>
   <title><![CDATA[CFormView in docking pane, with command bars : I have embedded a CFormView that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10004&amp;PID=32814&amp;title=cformview-in-docking-pane-with-command-bars#32814</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3717">Smucker</a><br /><strong>Subject:</strong> 10004<br /><strong>Posted:</strong> 30 March 2008 at 5:08am<br /><br />I have embedded a <font face="Courier New, Courier, mono"><b>CFormView </b></font>that includes a <font face="Courier New, Courier, mono"><b>CSyntaxEditCtrl </b></font>in a docking pane with some success. (I intend this for script editing, so it's not the main focus of the application. I really want to use a docking pane rather than a separate top-level window.)<br><br><img src="http://www.severian.org/severian/&#102;ormviewpane.png" border="0"><br><br>However, I'm facing a couple of problems:<br><ol><li>When it has focus, how can I get the form view/syntax control to obtain keyboard messages before they are translated as main frame accelerators?</li><li>If I use <b><font face="Courier New, Courier, mono">pCommandBars-&gt;SetSite()</font></b> on the form view, it never displays. I can attach it to the parent (which is an internally-generated <b><font face="Courier New, Courier, mono">CFrameWnd</font></b>), but then <b><font face="Courier New, Courier, mono">ON_XTP_CREATECONTROL()</font></b> doesn't work in the form view. (I'd like to put font/size combos on the toolbar).</li></ol>Here is the code I'm using in the OnInitialUpdate override to get #2 <i>almost </i>working:<br><br><font face="Courier New, Courier, mono" size="1">void CPythonEditor::OnInitialUpdate()<br></font><font face="Courier New, Courier, mono" size="1">{<br>&nbsp;&nbsp;&nbsp; CFormView::OnInitialUpdate();<br>&nbsp;&nbsp;&nbsp; m_pCommandBars = (CXTPCommandBars*)RUNTIME_CLASS(CXTPCommandBars)-&gt;CreateObject();<br>&nbsp;&nbsp;&nbsp; ASSERT(m_pCommandBars);<br>&nbsp;&nbsp;&nbsp; m_pCommandBars-&gt;SetSite(GetParent());<br>&nbsp;&nbsp;&nbsp; m_pCommandBars-&gt;EnableDocking();<br>&nbsp;&nbsp;&nbsp; m_pCommandBars-&gt;SetMenu(_T("Menu Bar"), MENU_PYTEXT);<br>&nbsp;&nbsp;&nbsp; CXTPToolBar* pCommandBar = (CXTPToolBar*)m_pCommandBars-&gt;Add(_T("Standard"), xtpBarTop);<br>&nbsp;&nbsp;&nbsp; if (!pCommandBar || !pCommandBar-&gt;LoadToolBar(MENU_PYTEXT)) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TRACE0("Failed to create toolbar\n");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br>&nbsp;&nbsp;&nbsp; }<br>...<br></font><br>I am creating the CFormView-derived pane in OnDockingPaneNotify() as follows:<br><br><font face="Courier New, Courier, mono" size="1">&nbsp;&nbsp;&nbsp; case IDR_PANE_PYTHON:<br>&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; pPane-&gt;AttachView(this, RUNTIME_CLASS(CPythonEditor));<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<br><br><br></font>]]>
   </description>
   <pubDate>Sun, 30 Mar 2008 05:08:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10004&amp;PID=32814&amp;title=cformview-in-docking-pane-with-command-bars#32814</guid>
  </item> 
 </channel>
</rss>