<?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 : PlusMinus Icon in Group</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : PlusMinus Icon in Group]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 15 May 2026 00:50:15 +0000</pubDate>
  <lastBuildDate>Wed, 22 Sep 2010 03:47:15 +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=17293</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[PlusMinus Icon in Group : Hi Aaron... thank you the code...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17293&amp;PID=60397&amp;title=plusminus-icon-in-group#60397</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5940">JamGodz</a><br /><strong>Subject:</strong> 17293<br /><strong>Posted:</strong> 22 September 2010 at 3:47am<br /><br />Hi Aaron... thank you the code works fine but the icon display not the minus/plus icon... <br><br><img src="uploads/5940/Plusminus_missing.png" height="572" width="788" border="0" /><br><br><br>]]>
   </description>
   <pubDate>Wed, 22 Sep 2010 03:47:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17293&amp;PID=60397&amp;title=plusminus-icon-in-group#60397</guid>
  </item> 
  <item>
   <title><![CDATA[PlusMinus Icon in Group : Hi,  &amp;#034;Normally&amp;#034; it...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17293&amp;PID=60394&amp;title=plusminus-icon-in-group#60394</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 17293<br /><strong>Posted:</strong> 22 September 2010 at 3:32am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>"Normally" it shows + / - icon already when records are grouped. See attached image</DIV><DIV>&nbsp;</DIV><DIV><img src="http://forum.codejock.com/uploads/3701/PlusMinusIssue.bmp" height="178" width="378" border="0" /></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>but you can try this:</DIV><DIV>&nbsp;</DIV><DIV>Private Sub wndReportControl_BeforeDrawRow(ByVal Row As XtremeReportControl.IReportRow, ByVal Item As XtremeReportControl.IReportRecordItem, ByVal Metrics As XtremeReportControl.IReportRecordItemMetrics)<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; If Row.GroupRow Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Row.Expanded = False Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Metrics.GroupRowIcon = 1 <FONT color=#006600>'PLUS icon, use your own index of the icon</FONT><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Metrics.GroupRowIconAlignment = xtpGroupRowIconBeforeText<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Metrics.GroupRowIcon = 2 <FONT color=#006600>'MINUS icon, use your own index of the icon</FONT><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Metrics.GroupRowIconAlignment = xtpGroupRowIconBeforeText<BR>&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; <BR>End Sub</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 22 Sep 2010 03:32:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17293&amp;PID=60394&amp;title=plusminus-icon-in-group#60394</guid>
  </item> 
  <item>
   <title><![CDATA[PlusMinus Icon in Group : Hello!i haven&amp;#039;t remove any...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17293&amp;PID=60393&amp;title=plusminus-icon-in-group#60393</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5940">JamGodz</a><br /><strong>Subject:</strong> 17293<br /><strong>Posted:</strong> 22 September 2010 at 3:14am<br /><br />Hello!<br><br>i haven't remove any icon... coz i don't know how to put an icon... pls.. show me some code on how to display the plus and minus icon... tnx..<br>]]>
   </description>
   <pubDate>Wed, 22 Sep 2010 03:14:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17293&amp;PID=60393&amp;title=plusminus-icon-in-group#60393</guid>
  </item> 
  <item>
   <title><![CDATA[PlusMinus Icon in Group : Hi,  OK, now I see what you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17293&amp;PID=60392&amp;title=plusminus-icon-in-group#60392</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 17293<br /><strong>Posted:</strong> 22 September 2010 at 3:07am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>OK, now I see what you mean <img src="http://forum.codejock.com/smileys/smiley2.gif" height="17" width="17" border="0" alt="Wink" title="Wink" /></DIV><DIV>&nbsp;</DIV><DIV><DIV>wndReportControl.PaintManager.Glyphs.Icons collection, just add your own icons with proper index.</DIV><DIV>&nbsp;</DIV><DIV><img src="https://forum.codejock.com/uploads/20100518_131124_20090625_173910.bmp" border="0" /></DIV><DIV>&nbsp;</DIV><DIV>Minus icon&nbsp;index = 0</DIV><DIV>Unlocked icon index = 10</DIV></DIV><DIV>&nbsp;</DIV><DIV>There are two more icons: Sort ASC + Sort DESC (11+12)</DIV><DIV>&nbsp;</DIV><DIV><strong>note: I see no icon in front of the grouprow??? Did you remove them already?</strong></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 22 Sep 2010 03:07:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17293&amp;PID=60392&amp;title=plusminus-icon-in-group#60392</guid>
  </item> 
  <item>
   <title><![CDATA[PlusMinus Icon in Group : Hi Aaron...thank you for the replay...Ive...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17293&amp;PID=60389&amp;title=plusminus-icon-in-group#60389</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5940">JamGodz</a><br /><strong>Subject:</strong> 17293<br /><strong>Posted:</strong> 22 September 2010 at 1:54am<br /><br />Hi Aaron...thank you for the replay...<br>Ive tried your code but still doesn't appear/display the plus/minus icon beside the planter name&nbsp; please refer attached file, of what i mean...<br><br><img src="uploads/5940/PlusMinus_copy.jpg" height="533" width="863" border="0" /><br><br><br>Thanks...<br>]]>
   </description>
   <pubDate>Wed, 22 Sep 2010 01:54:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17293&amp;PID=60389&amp;title=plusminus-icon-in-group#60389</guid>
  </item> 
  <item>
   <title><![CDATA[PlusMinus Icon in Group : Hi,       You want to switch...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17293&amp;PID=60387&amp;title=plusminus-icon-in-group#60387</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 17293<br /><strong>Posted:</strong> 22 September 2010 at 1:16am<br /><br />Hi,<DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>You want to switch visibility of some columns?</DIV><DIV>Following example will hide/show second colum:</DIV><DIV>&nbsp;</DIV><DIV>With Me.wndReportControl<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .Columns<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .Add(.Count, "Col 1", 100, True)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .PlusMinus = True <FONT color=#006600>'Show 'button'<BR></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .NextVisualBlock = 1 <FONT color=#006600>'Meaning number of columns that&nbsp;toggles visibility after this column&nbsp;</FONT><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .Add(.Count, "Col 2", 100, True)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.... </DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End With</DIV><DIV>End With</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 22 Sep 2010 01:16:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17293&amp;PID=60387&amp;title=plusminus-icon-in-group#60387</guid>
  </item> 
  <item>
   <title><![CDATA[PlusMinus Icon in Group : Hi Everyone! Good Day!How do i...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17293&amp;PID=60386&amp;title=plusminus-icon-in-group#60386</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5940">JamGodz</a><br /><strong>Subject:</strong> 17293<br /><strong>Posted:</strong> 22 September 2010 at 12:52am<br /><br />Hi Everyone! Good Day!<br><br>How do i display the plus minus icon in group header? below is my code to customize the RC.<br><br>Private Sub Form_Load()<br>&nbsp;&nbsp;&nbsp; rs.Open strSQL, ConnectTo.InternalConn, adOpenStatic, adLockOptimistic<br>&nbsp;&nbsp;&nbsp; CustomizeRepCtrl<br>&nbsp;&nbsp;&nbsp; If rs.RecordCount &gt; 0 Then rs.MoveFirst: mdiMain.tpgFilter.Expanded = True: FillList<br>End Sub<br><br>Private Sub CustomizeRepCtrl()<br>&nbsp;&nbsp;&nbsp; Dim Column As ReportColumn<br>&nbsp;&nbsp;&nbsp; Set Column = wndList.Columns.Add(COLUMN_ICON_STATUS, "ICONSTATUS", 18, False)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Column.Editable = False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Column.Icon = COLUMN_BLACK_ICON<br>&nbsp;&nbsp;&nbsp; Set Column = wndList.Columns.Add(COLUMN_TCODE, "HDA CODE", 50, True)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Column.PlusMinus = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Column.Editable = False<br>&nbsp;&nbsp;&nbsp; Set Column = wndList.Columns.Add(COLUMN_PLTRCODE, "Code", 50, True)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Column.Editable = False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Column.Icon = COLUMN_ICON_PLTR<br>&nbsp;&nbsp;&nbsp; Set Column = wndList.Columns.Add(COLUMN_PLTRNAME, "Pltr Name", 200, True)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Column.Editable = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Column.EditOptions.SelectTextOnEdit = True<br>&nbsp;&nbsp;&nbsp; Set Column = wndList.Columns.Add(COLUMN_HDANAME, "Hda Name", 200, True)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Column.Editable = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Column.EditOptions.SelectTextOnEdit = True<br>&nbsp;&nbsp;&nbsp; With wndList<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Icons.LoadBitmap App.Path &amp; "\Components\bullet\Bullet-black16.png", COLUMN_BLACK_ICON, xtpImageNormal<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Icons.LoadBitmap App.Path &amp; "\Components\bullet\Bullet-red16.png", RECORD_RED_ICON, xtpImageNormal<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Icons.LoadBitmap App.Path &amp; "\Components\bullet\Bullet-blue16.png", RECORD_BLUE_ICON, xtpImageNormal<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Icons.LoadBitmap App.Path &amp; "\Components\bullet\Bullet-green16.png", RECORD_GREEN_ICON, xtpImageNormal<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Icons.LoadBitmap App.Path &amp; "\Components\bullet\Bullet-yellow16.png", RECORD_YELLOW_ICON, xtpImageNormal<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '.Icons.LoadBitmap App.Path &amp; "\Components\bullet\UserBlue.png", RECORD_BLUE_ICON, xtpImageNormal<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Icons.LoadBitmap App.Path &amp; "\Components\bullet\PlantersBlack1.png", COLUMN_ICON_PLTR, xtpImageNormal<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .PaintManager<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ColumnStyle = xtpColumnOffice2007<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .DrawGridForEmptySpace = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .VerticalGridStyle = xtpGridSmallDots<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .HorizontalGridStyle = xtpGridSmallDots<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp; End With<br>End Sub<br><br>Private Sub FillList()<br>&nbsp;&nbsp;&nbsp; LoadData wndList, rs, "TCODE¦PLTR_CODE¦PLTR_NAME¦HDA_NAME¦PROGRESS", "PK", True,&nbsp; COLUMN_TCODE<br>End Sub<br><br><br><br>Private Sub LoadData(ByRef srcControl As XtremeReportControl.ReportControl, ByRef srcRS As Recordset, ByVal srcField As String, Optional srcHiddenField As String, Optional bGroup As Boolean, Optional ByVal srcGroupBy As Integer)<br>&nbsp;&nbsp;&nbsp; Dim xtrmRCRecord As XtremeReportControl.ReportRecord, i As Integer, Item As ReportRecordItem<br>&nbsp;&nbsp;&nbsp; sSplit() = Split(UCase(srcField), "¦")<br>&nbsp;&nbsp;&nbsp; If srcRS.RecordCount &lt; 1 Then Exit Sub<br>&nbsp;&nbsp;&nbsp; srcRS.MoveFirst<br>&nbsp;&nbsp;&nbsp; With srcControl<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If bGroup = True Then .GroupsOrder.DeleteAll: .Records.DeleteAll<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .CreateRowNumberColumn 30<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .PaintManager.GroupRowTextBold = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .PaintManager.ShadeGroupHeadings = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .PaintManager.StartRecOrRowNumber = 1<br>&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp; Do While Not srcRS.EOF<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set xtrmRCRecord = srcControl.Records.Add()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For i = 0 To UBound(sSplit())<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Item = xtrmRCRecord.AddItem(srcRS.Collect(sSplit(i)))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If IsNull(Item.Value) Then Item.Value = Empty<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next i<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Len(srcHiddenField) &gt; 0 Then xtrmRCRecord.Tag = srcRS.Collect(srcHiddenField)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; srcRS.MoveNext<br>&nbsp;&nbsp;&nbsp; Loop<br>&nbsp;&nbsp;&nbsp; If bGroup = True Then srcControl.GroupsOrder.Add srcControl.Columns.Find(srcGroupBy): srcControl.Columns.Find(srcGroupBy).Visible = False<br>&nbsp;&nbsp;&nbsp; srcControl.Populate<br>&nbsp;&nbsp;&nbsp; srcControl.SetCustomDraw xtpCustomBeforeDrawRow<br>&nbsp;&nbsp;&nbsp; srcControl.Redraw<br>End Sub<br><br><br>Any help would be greatly appreciated....<br><br>]]>
   </description>
   <pubDate>Wed, 22 Sep 2010 00:52:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17293&amp;PID=60386&amp;title=plusminus-icon-in-group#60386</guid>
  </item> 
 </channel>
</rss>