<?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 : ShowPane bSetFocus issue ?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : ShowPane bSetFocus issue ?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 23:19:00 +0000</pubDate>
  <lastBuildDate>Wed, 25 Feb 2009 03:56:58 +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=13485</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[ShowPane bSetFocus issue ? : Hi,    I tried with our PaneSample...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13485&amp;PID=45841&amp;title=showpane-bsetfocus-issue#45841</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13485<br /><strong>Posted:</strong> 25 February 2009 at 3:56am<br /><br />Hi,<DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>I tried with our PaneSample and seems it works. </DIV><DIV></DIV><DIV></DIV><P>try add FALSE in void CMainFrame::OnShowPane(UINT nID) method and check this sample.&nbsp; Do you see same ?</P>]]>
   </description>
   <pubDate>Wed, 25 Feb 2009 03:56:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13485&amp;PID=45841&amp;title=showpane-bsetfocus-issue#45841</guid>
  </item> 
  <item>
   <title><![CDATA[ShowPane bSetFocus issue ? : Hello,I&amp;#039;m currently using...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13485&amp;PID=45812&amp;title=showpane-bsetfocus-issue#45812</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4164">nickpap</a><br /><strong>Subject:</strong> 13485<br /><strong>Posted:</strong> 24 February 2009 at 5:38am<br /><br />Hello,<br><br>I'm currently using XTP v12.1.0 and I have an issue with CXTPDockingPaneManager-&gt;ShowPane not honoring the bSetFocus parameter.<br><br>I've created several panes and I attempt to control which ones appear depending on some conditions. I'm using ShowPane to display and ClosePane to hide each pane in turn. The problem is that ShowPane always sets the focus to the newly displayed pane, although I tried passing FALSE in the bSetFocus parameter.<br><br>This code does not work:<br><br><font color="#0000ff">&nbsp;&nbsp;&nbsp; </font><font color="#0000ff" face="Courier New, Courier, mono">this-&gt;ShowPane(pPane, pnItem-&gt;wOptions &amp; PPI_OPT_SET_FOCUS); <font color="#cccccc">//pass TRUE in bSetFocus only when option is set</font></font><br><br>So, I'm using this workaround:<br><br>&nbsp;&nbsp;&nbsp; <font color="#0000ff" face="Courier New, Courier, mono">if (!(pnItem-&gt;wOptions &amp; PPI_OPT_SET_FOCUS)) <font color="#cccccc">//workaround to correctly manage not to set focus to shown pane</font><br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPDockingPane* pActivePane = this-&gt;GetActivePane(); <font color="#cccccc">//get the currently selected pane</font><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;ShowPane(pPane, FALSE);<font color="#ffffff"> <font color="#cccccc">//doesn't seem to honor the bSetFocus parameter...</font></font><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;ShowPane(pActivePane);<font color="#cccccc"> //set the focus back</font><br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;ShowPane(pPane);</font><font color="#0000ff" face="Courier New, Courier, mono"> <font color="#cccccc">//use default bSetFocus = TRUE</font></font><br><br><br><br>]]>
   </description>
   <pubDate>Tue, 24 Feb 2009 05:38:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13485&amp;PID=45812&amp;title=showpane-bsetfocus-issue#45812</guid>
  </item> 
 </channel>
</rss>