<?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 : Progress bar in a cell</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Progress bar in a cell]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 15 May 2026 22:07:42 +0000</pubDate>
  <lastBuildDate>Tue, 10 Apr 2007 03:46:54 +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=6748</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[Progress bar in a cell : Thanks, i will try to implement...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6748&amp;PID=21777&amp;title=progress-bar-in-a-cell#21777</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2551">Franco Prudente</a><br /><strong>Subject:</strong> 6748<br /><strong>Posted:</strong> 10 April 2007 at 3:46am<br /><br />Thanks, i will try to implement this in C# code...]]>
   </description>
   <pubDate>Tue, 10 Apr 2007 03:46:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6748&amp;PID=21777&amp;title=progress-bar-in-a-cell#21777</guid>
  </item> 
  <item>
   <title><![CDATA[Progress bar in a cell : In VB6 1&#186; Put this in column...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6748&amp;PID=21663&amp;title=progress-bar-in-a-cell#21663</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1162">pcmaker</a><br /><strong>Subject:</strong> 6748<br /><strong>Posted:</strong> 03 April 2007 at 1:36pm<br /><br />In VB6<br>1º&nbsp; Put this in column declare:<br>wnd_rpc.SetCustomDraw xtpCustomBeforeDrawRow + xtpCustomDrawItem<br><br>2º In wnd_rpc_DrawItem event, this:<br>Private Sub wndAct_DrawItem(ByVal Row AsXtremeReportControl.IReportRow, ByVal Column AsXtremeReportControl.IReportColumn, ByVal Item AsXtremeReportControl.IReportRecordItem, ByVal hdc As stdole.OLE_HANDLE,ByVal left As Long, ByVal top As Long, ByVal right As Long, ByValbottom As Long, DoDefault As Boolean)<br>If Column.Index = X Then<br>&nbsp;&nbsp;&nbsp; drawProgressCell Item, hdc, left, top, right, bottom, Row.Record.Index<br>End If<br>End Sub<br>Where Column.Index = X is the column where you want use the progress bar.<br><br>3º The implement of drawProgressCell sub:<br>Sub drawProgressCell(Item As ReportRecordItem, hdc As stdole.OLE_HANDLE, _<br>&nbsp;&nbsp;&nbsp; left As Long, top As Long, right As Long, bottom As Long, row_index As Long)<br>Dim rec_porct As Long<br>Select Case Item.Value<br>&nbsp;&nbsp;&nbsp; Case Is &lt; 10<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FillBrush = CreateSolidBrush(vbRed)<br>&nbsp;&nbsp;&nbsp; Case Is = 100<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FillBrush = CreateSolidBrush(vbGreen)<br>&nbsp;&nbsp;&nbsp; Case Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FillBrush = CreateSolidBrush(Me.BackColor)<br>End Select<br>DeleteObject SelectObject(hdc, FillBrush)<br>rec_porct = (Item.Value * (right - left)) / 100<br>RectangleX hdc, left, top + 1, left + rec_porct, bottom - 1<br>End Sub<br><br>4º In add_records sub, fill value of the progress cell with this:<br>Record.AddItem Format(va_porct, "###,##0.00")<br>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; Record.Item(5).Format = "%s%%"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Record.Item(5).ToolTip = va_porct &amp; "%"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Record.Item(5).ForeColor = vbBlack<br>This format the number, in order to keep the original value(double) in the value of cell.<br><br>I take a vacation until april 9.<br><br>I hope that this reply help you in your problems.<br><br>Bye, Juan Quintero - Venezuela.<br><br>PD: my englhis is bad, excuseme.<br>]]>
   </description>
   <pubDate>Tue, 03 Apr 2007 13:36:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6748&amp;PID=21663&amp;title=progress-bar-in-a-cell#21663</guid>
  </item> 
  <item>
   <title><![CDATA[Progress bar in a cell : Any chance you can post a sample...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6748&amp;PID=21654&amp;title=progress-bar-in-a-cell#21654</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2051">BagLady</a><br /><strong>Subject:</strong> 6748<br /><strong>Posted:</strong> 03 April 2007 at 9:33am<br /><br />Any chance you can post a sample on how to do this, I have been following this thread for a while and am finally adding something as I see no response<img src="https://forum.codejock.com/smileys/smiley7.gif" border="0">&nbsp; This is very important to us.]]>
   </description>
   <pubDate>Tue, 03 Apr 2007 09:33:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6748&amp;PID=21654&amp;title=progress-bar-in-a-cell#21654</guid>
  </item> 
  <item>
   <title><![CDATA[Progress bar in a cell : Gan we get an answer to this please?...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6748&amp;PID=21653&amp;title=progress-bar-in-a-cell#21653</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2415">fantama</a><br /><strong>Subject:</strong> 6748<br /><strong>Posted:</strong> 03 April 2007 at 9:31am<br /><br />Gan we get an answer to this please?]]>
   </description>
   <pubDate>Tue, 03 Apr 2007 09:31:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6748&amp;PID=21653&amp;title=progress-bar-in-a-cell#21653</guid>
  </item> 
  <item>
   <title><![CDATA[Progress bar in a cell : QUE TAL GENTE.  LES PUEDO ESCRIBIR...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6748&amp;PID=21567&amp;title=progress-bar-in-a-cell#21567</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1162">pcmaker</a><br /><strong>Subject:</strong> 6748<br /><strong>Posted:</strong> 29 March 2007 at 3:00pm<br /><br />QUE TAL GENTE.<br><br>LES PUEDO ESCRIBIR EN ESPAÑOL PARA ENTENDERNOS MEJOR.<br><br>YO SE LA MANERA PARA HACER LO QUE NECESITAN!<br>]]>
   </description>
   <pubDate>Thu, 29 Mar 2007 15:00:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6748&amp;PID=21567&amp;title=progress-bar-in-a-cell#21567</guid>
  </item> 
  <item>
   <title><![CDATA[Progress bar in a cell : I would like to know too. Please...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6748&amp;PID=21523&amp;title=progress-bar-in-a-cell#21523</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2415">fantama</a><br /><strong>Subject:</strong> 6748<br /><strong>Posted:</strong> 28 March 2007 at 9:09am<br /><br />I would like to know too.&nbsp; Please post some code actually doing this instead of saying use DrawItem event etc......&nbsp; Would be nice if it did not take up entire cell and had a nice border around it.<DIV>Thanks</DIV>]]>
   </description>
   <pubDate>Wed, 28 Mar 2007 09:09:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6748&amp;PID=21523&amp;title=progress-bar-in-a-cell#21523</guid>
  </item> 
  <item>
   <title><![CDATA[Progress bar in a cell : Hi, i would add a progress bar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6748&amp;PID=21521&amp;title=progress-bar-in-a-cell#21521</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2551">Franco Prudente</a><br /><strong>Subject:</strong> 6748<br /><strong>Posted:</strong> 28 March 2007 at 8:29am<br /><br />Hi, i would add a progress bar in a cell.<DIV>How can i do?</DIV><DIV>Thanks</DIV>]]>
   </description>
   <pubDate>Wed, 28 Mar 2007 08:29:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6748&amp;PID=21521&amp;title=progress-bar-in-a-cell#21521</guid>
  </item> 
 </channel>
</rss>