<?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 : Add Item to gallery at run-time</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Add Item to gallery at run-time]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 12 Jun 2026 01:55:38 +0000</pubDate>
  <lastBuildDate>Mon, 23 Mar 2009 09:37:29 +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=13756</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[Add Item to gallery at run-time : Thanks Oleg.  Here is how I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13756&amp;PID=47000&amp;title=add-item-to-gallery-at-runtime#47000</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5078">Bart6</a><br /><strong>Subject:</strong> 13756<br /><strong>Posted:</strong> 23 March 2009 at 9:37am<br /><br /><FONT face="Verdana, Arial, Helvetica, sans-serif" color=#330066>Thanks Oleg.</FONT><DIV>&nbsp;</DIV><DIV><FONT face="Verdana, Arial, Helvetica, sans-serif" color=#330066>Here is how I added a new item to the existing gallery:</FONT></DIV><DIV>&nbsp;</DIV><FONT size=2><P><FONT face="Courier New, Courier, mono">CXTPImageManagerIconHandle hIcon(hBitmap);</FONT></P><DIV><FONT face="Courier New, Courier, mono">UINT index = m_pItemsMaterials-&gt;GetImageManager()-&gt;AddCustomIcon(hIcon);</FONT></DIV><P><FONT face="Courier New, Courier, mono">m_pItemsMaterials-&gt;AddItem( TEXT(</FONT></FONT><FONT face="Courier New, Courier, mono"><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"Hello World"</FONT></FONT><FONT size=2>), index);</P><DIV></DIV><P><FONT face="Verdana, Arial, Helvetica, sans-serif" color=#330099>Would you agree this is the best method?</FONT></FONT></FONT></P>]]>
   </description>
   <pubDate>Mon, 23 Mar 2009 09:37:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13756&amp;PID=47000&amp;title=add-item-to-gallery-at-runtime#47000</guid>
  </item> 
  <item>
   <title><![CDATA[Add Item to gallery at run-time : Hi,  Add Item to gellery items...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13756&amp;PID=46981&amp;title=add-item-to-gallery-at-runtime#46981</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13756<br /><strong>Posted:</strong> 23 March 2009 at 1:57am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Add Item to gellery items and update imagemanager:</DIV><DIV>&nbsp;</DIV><DIV>m_pItemsColumns-&gt;GetImageManager()-&gt;SetIcons(&amp;bmp....);<BR>m_pItemsColumns-&gt;AddItem(_T("One"), index, index);</DIV>]]>
   </description>
   <pubDate>Mon, 23 Mar 2009 01:57:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13756&amp;PID=46981&amp;title=add-item-to-gallery-at-runtime#46981</guid>
  </item> 
  <item>
   <title><![CDATA[Add Item to gallery at run-time : Hello,  I would like to add...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13756&amp;PID=46970&amp;title=add-item-to-gallery-at-runtime#46970</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5078">Bart6</a><br /><strong>Subject:</strong> 13756<br /><strong>Posted:</strong> 22 March 2009 at 8:17am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>I would like to add an item to a gallery at run-time. Via an event&nbsp;I get a pointer to a thumbnail&nbsp;structure. The structure contain size and memory pointer to 32 bit RGBA&nbsp;uncompressed image.</DIV><DIV>&nbsp;</DIV><DIV>Q: What is the best way to add my thumbnail to the gallery? (of type <FONT size=2>CXTPControlGalleryItems)</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>(Using XTP 13.0.0 on XP SP3 32bit and VS2008)</FONT></DIV><DIV><FONT size=2>Thank you</FONT></DIV><DIV><FONT size=2>Bart</FONT></DIV>]]>
   </description>
   <pubDate>Sun, 22 Mar 2009 08:17:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13756&amp;PID=46970&amp;title=add-item-to-gallery-at-runtime#46970</guid>
  </item> 
 </channel>
</rss>