<?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 : Having problem with ExpandButton</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Having problem with ExpandButton]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 15 May 2026 04:28:00 +0000</pubDate>
  <lastBuildDate>Fri, 21 May 2010 03:07:21 +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=16726</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[Having problem with ExpandButton : SuperMario,Unfortunately, I can&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16726&amp;PID=58621&amp;title=having-problem-with-expandbutton#58621</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5187">Mike Lewis</a><br /><strong>Subject:</strong> 16726<br /><strong>Posted:</strong> 21 May 2010 at 3:07am<br /><br />SuperMario,<br><br>Unfortunately, I can't look at the VB sample reports as I don't use VB. But that's OK, because your code sample tells me what I need to know. <br><br>I'll give it a try and report back. Many thanks.<br><br>Mike<br>]]>
   </description>
   <pubDate>Fri, 21 May 2010 03:07:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16726&amp;PID=58621&amp;title=having-problem-with-expandbutton#58621</guid>
  </item> 
  <item>
   <title><![CDATA[Having problem with ExpandButton : Look at ItemControls samples -...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16726&amp;PID=58605&amp;title=having-problem-with-expandbutton#58605</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 16726<br /><strong>Posted:</strong> 20 May 2010 at 11:16am<br /><br />Look at ItemControls samples - part of the VB6 Report Sample......here is the basics to adding 2 buttons<br><br>&nbsp;&nbsp;&nbsp; Dim i As Integer<br><br>&nbsp;&nbsp;&nbsp; 'Assign icon IDs<br>&nbsp;&nbsp;&nbsp; For i = 0 To 6<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; iconArray(i) = i + 1<br>&nbsp;&nbsp;&nbsp; Next<br><br>&nbsp;&nbsp;&nbsp; 'Load icons<br>&nbsp;&nbsp;&nbsp; wndReportControl.Icons.LoadBitmap App.Path &amp; "\Icons\itemcontrols.bmp", iconArray, xtpImageNormal<br><br>&nbsp;&nbsp;&nbsp; Dim Record As ReportRecord<br>&nbsp;&nbsp;&nbsp; Dim Item As ReportRecordItem<br>&nbsp;&nbsp;&nbsp; Dim Button As ReportItemButton<br><br>&nbsp;&nbsp;&nbsp; 'Adds new record<br>&nbsp;&nbsp;&nbsp; Set Record = wndReportControl.Records.Add()<br><br>&nbsp;&nbsp;&nbsp; 'Add items<br>&nbsp;&nbsp;&nbsp; i = 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Add item<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Item = Record.AddItem("Row - " &amp; Record.Index + 1 &amp; ", Column - " &amp; i + 1)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Item.Editable = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Add button "Alignment"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Button = Item.ItemControls.AddButton(-1)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Button.Alignment = xtpReportItemControlLeft<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Button.Alignment = xtpReportItemControlRight<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Button.SetIconIndex xtpReportItemButtonStateNormal, 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Button.SetIconIndex xtpReportItemButtonStatePressed, 2<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Button.SetSize 22, 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Add button "Color"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Button = Item.ItemControls.AddButton(-1)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Button.Alignment = xtpReportItemControlRight<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Button.SetIconIndex xtpReportItemButtonStateNormal, 5<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Button.SetIconIndex xtpReportItemButtonStatePressed, 6<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Button.SetSize 22, 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Add button "Bold"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Button = Item.ItemControls.AddButton(-1)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Button.Alignment = xtpReportItemControlRight<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Button.SetIconIndex xtpReportItemButtonStateAll, 4<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Button.CaptionColor = 255<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Button.SetSize 22, 0<br><br>&nbsp;&nbsp;&nbsp; wndReportControl.Populate<br><br><br><br>]]>
   </description>
   <pubDate>Thu, 20 May 2010 11:16:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16726&amp;PID=58605&amp;title=having-problem-with-expandbutton#58605</guid>
  </item> 
  <item>
   <title><![CDATA[Having problem with ExpandButton : SuperMario,That&amp;#039;s a good...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16726&amp;PID=58604&amp;title=having-problem-with-expandbutton#58604</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5187">Mike Lewis</a><br /><strong>Subject:</strong> 16726<br /><strong>Posted:</strong> 20 May 2010 at 10:09am<br /><br />SuperMario,<br><br>That's a good question. The answer is: Because I didn't know it existed.<br><br>I've found the Help topic for the ReportItemButton, and also the list of its PEMs. But I can't see how to add it to a report. Can you give me some guidance on how to get started with it? <br><br>Thanks.<br><br>Mike<br>]]>
   </description>
   <pubDate>Thu, 20 May 2010 10:09:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16726&amp;PID=58604&amp;title=having-problem-with-expandbutton#58604</guid>
  </item> 
  <item>
   <title><![CDATA[Having problem with ExpandButton : why not just add a ReportItemButton? ...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16726&amp;PID=58602&amp;title=having-problem-with-expandbutton#58602</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 16726<br /><strong>Posted:</strong> 20 May 2010 at 9:25am<br /><br />why not just add a ReportItemButton?]]>
   </description>
   <pubDate>Thu, 20 May 2010 09:25:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16726&amp;PID=58602&amp;title=having-problem-with-expandbutton#58602</guid>
  </item> 
  <item>
   <title><![CDATA[Having problem with ExpandButton : Aaron,Many thanks for your very...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16726&amp;PID=58596&amp;title=having-problem-with-expandbutton#58596</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5187">Mike Lewis</a><br /><strong>Subject:</strong> 16726<br /><strong>Posted:</strong> 20 May 2010 at 3:45am<br /><br />Aaron,<br><br>Many thanks for your very helpful reply. Your code did the trick.<br><br>However, now that I can see the ExpandButton, I realise it's not what I was expecting. It seems the button is meant to form part of an editable cell, where the user can either edit the text directly or click on the button to access more options.<br><br>What I really wanted was a cell that only contains a button - no text - and when the user clicks the button, I can open a context menu. I know I can do that in the right-click event, but I wanted to provide a button as an alternative.<br><br>I guess an Expand Button is the wrong choice for that. Never mind. I'll try to simulate it on some way, perhaps with a hyperlink. Thanks anyway for your reply.<br><br>Mike<br>]]>
   </description>
   <pubDate>Thu, 20 May 2010 03:45:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16726&amp;PID=58596&amp;title=having-problem-with-expandbutton#58596</guid>
  </item> 
  <item>
   <title><![CDATA[Having problem with ExpandButton : Hi Mike,   This is most basic...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16726&amp;PID=58593&amp;title=having-problem-with-expandbutton#58593</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 16726<br /><strong>Posted:</strong> 20 May 2010 at 12:34am<br /><br />Hi Mike, <DIV>&nbsp;</DIV><DIV>This is most basic code to have an ExpandButton for <strong>every</strong> single ReportItem&nbsp;in the column:</DIV><DIV>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp; wndReportControl.AllowEdit = True<BR>&nbsp;&nbsp;&nbsp; </DIV><DIV>&nbsp;&nbsp;&nbsp; Dim oCol As XtremeReportControl.ReportColumn<BR>&nbsp;&nbsp;&nbsp; Set oCol&nbsp; = wndReportControl.Columns.Add(0, "Column 1", 50, True)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; oCol.EditOptions.AddExpandButton True</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>If you don't&nbsp;want ExpandButton for <strong>entire</strong> column&nbsp;just add ExpandButton for a single&nbsp;ReportItem:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; Dim xtremeRecordItem As XtremeReportControl.ReportRecordItem<BR>&nbsp;&nbsp;&nbsp; Dim xtremeRecord As XtremeReportControl.ReportRecord</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;Set xtremeRecordItem = xtremeRecord.AddItem("Some text")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xtremeRecordItem.CreateEditOptions<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xtremeRecordItem.EditOptions.AddExpandButton True<BR></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Hope this helps <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;&nbsp;&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 20 May 2010 00:34:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16726&amp;PID=58593&amp;title=having-problem-with-expandbutton#58593</guid>
  </item> 
  <item>
   <title><![CDATA[Having problem with ExpandButton :  I hope this is a simple question.I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16726&amp;PID=58586&amp;title=having-problem-with-expandbutton#58586</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5187">Mike Lewis</a><br /><strong>Subject:</strong> 16726<br /><strong>Posted:</strong> 19 May 2010 at 3:14pm<br /><br />I hope this is a simple question.<br><br>I am using version 13.1.<br><br>I am trying to add an ExpandButton to a column. I want it to appear in every row for the column.<br><br>I have tried doing the following (where oCol is an object reference to the column):<br><br><b><font face="Courier New, Courier, mono" size="2">oCol.EditOptions.AddExpandButton(0)</font></b><br><br>But the button does not appear. I just see an empty column. I've tried clicking and double-clicking in a cell, but that makes no difference.<br><br>I also tried doing this in each cell within the column:<br><br><b><font face="Courier New, Courier, mono" size="2">oItem.CreateEditOptions()</font></b><br><br>The effect was to make the cell editable, but still no sign of the button.<br><br>I've successfully created a combo button for the same grid. It's just the expand button that has defeated me.<br><br>I'd be grateful for your help. I expect I'm missing something quite simple.<br><br>Mike<br>]]>
   </description>
   <pubDate>Wed, 19 May 2010 15:14:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16726&amp;PID=58586&amp;title=having-problem-with-expandbutton#58586</guid>
  </item> 
 </channel>
</rss>