<?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 : Using CXTPControlGallery in a Panel</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Using CXTPControlGallery in a Panel]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 00:16:04 +0000</pubDate>
  <lastBuildDate>Mon, 26 Nov 2007 14:00:42 +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=8883</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[Using CXTPControlGallery in a Panel : Hi,  Problem in this line pc...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8883&amp;PID=28846&amp;title=using-cxtpcontrolgallery-in-a-panel#28846</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8883<br /><strong>Posted:</strong> 26 November 2007 at 2:00pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Problem in this line pcg-&gt;SetControlSize(CSize(100, 300));</DIV><DIV>&nbsp;</DIV><DIV>think you can in OnSize method set size for gallery before you update size of toolbar</DIV><DIV>&nbsp;</DIV><DIV>pcg-&gt;SetControlSize(CSize(cx - gap, 300));</DIV>]]>
   </description>
   <pubDate>Mon, 26 Nov 2007 14:00:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8883&amp;PID=28846&amp;title=using-cxtpcontrolgallery-in-a-panel#28846</guid>
  </item> 
  <item>
   <title><![CDATA[Using CXTPControlGallery in a Panel : Hi,I tried with xtpFlagControlStretched...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8883&amp;PID=28840&amp;title=using-cxtpcontrolgallery-in-a-panel#28840</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3104">MacW</a><br /><strong>Subject:</strong> 8883<br /><strong>Posted:</strong> 26 November 2007 at 12:32pm<br /><br />Hi,<br><br>I tried with xtpFlagControlStretched but it does not change anything.<br>The gallery does not stretch to the width of the toolbar.<br><br>&nbsp;&nbsp;&nbsp; CXTPControlGallery* pcg = new CXTPControlGallery();<br>&nbsp;&nbsp;&nbsp; pcg-&gt;SetControlSize(CSize(100, 300));<br>&nbsp;&nbsp;&nbsp; pcg-&gt;SetResizable();<br>&nbsp;&nbsp;&nbsp; pcg-&gt;ShowBorders(TRUE);<br>&nbsp;&nbsp;&nbsp; pcg-&gt;SetItems(m_pItemsShapes);<br>&nbsp;&nbsp;&nbsp; pcg-&gt;SetFlags(pcg-&gt;GetFlags()|xtpFlagControlStretched);<br>&nbsp;&nbsp;&nbsp; m_Toolbar.GetControls()-&gt;Add(pcg, ID_GALLERY_SHAPES);<br><br><br>I resize the toolbar in OnSize to fill the client area of the panel, but the gallery does not follow. Anything I need to do, in a specific sequence?<br>]]>
   </description>
   <pubDate>Mon, 26 Nov 2007 12:32:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8883&amp;PID=28840&amp;title=using-cxtpcontrolgallery-in-a-panel#28840</guid>
  </item> 
  <item>
   <title><![CDATA[Using CXTPControlGallery in a Panel : Hi,  Add xtpFlagControlStretched...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8883&amp;PID=28794&amp;title=using-cxtpcontrolgallery-in-a-panel#28794</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8883<br /><strong>Posted:</strong> 26 November 2007 at 12:54am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Add xtpFlagControlStretched flag for control.</DIV><DIV>&nbsp;</DIV><DIV>Or override CXTPToolBar and its CalcDockingLayout method and set controls's rect.</DIV>]]>
   </description>
   <pubDate>Mon, 26 Nov 2007 00:54:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8883&amp;PID=28794&amp;title=using-cxtpcontrolgallery-in-a-panel#28794</guid>
  </item> 
  <item>
   <title><![CDATA[Using CXTPControlGallery in a Panel : Hi,I want to use a CXTPControlGallery...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8883&amp;PID=28786&amp;title=using-cxtpcontrolgallery-in-a-panel#28786</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3104">MacW</a><br /><strong>Subject:</strong> 8883<br /><strong>Posted:</strong> 25 November 2007 at 2:29pm<br /><br />Hi,<br><br>I want to use a CXTPControlGallery control in a normal Panel.<br>As far as I gather from the samples, a CXTPControlGallery must be used in a ControlBar/Toolbar.<br><br>I hence added a toolbar to my panel, and adjust it's position and size in the OnSize event. I now want to resize the CXTPControlGallery instance to fit the inner area of the toolbar so that it basically spreads the complete panel width sans the borders etc. required by the toolbar.<br><br>How do I get the inner dimension of a toolbar (the usable width/height) ?<br><br><br><br>Also, the documentation how all the CXTPControlGallery classes relate seems to be missing from the XTP help file?<br><br>There is only a (sparse) documentation of the classes and methods, but not when to use which method to produce which result. Trying to gather all this from the samples would be a very time consuming task...<br><br>]]>
   </description>
   <pubDate>Sun, 25 Nov 2007 14:29:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8883&amp;PID=28786&amp;title=using-cxtpcontrolgallery-in-a-panel#28786</guid>
  </item> 
 </channel>
</rss>