<?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</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Task Panel : Add Item]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 03:28:35 +0000</pubDate>
  <lastBuildDate>Thu, 25 Jun 2009 16:06:40 +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=14603</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 : Hello, there is still no uplaod...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14603&amp;PID=50302&amp;title=add-item#50302</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3156">Peter59</a><br /><strong>Subject:</strong> 14603<br /><strong>Posted:</strong> 25 June 2009 at 4:06pm<br /><br />Hello, <br><br>there is still no uplaod button here so I have to explain it this way. <br><br>My VB sample project <br><br>Assuming you have a recordset rsEvents with events (from database forexample) <br><br>1. Create a new project<br>2. Add a reference to MS ActiveX Data Objects<br>3. Add a CodeJock TaskPanel control named TaskPanel, 4 labels, 4 textboxes and a MS ImageList named TaskPanelIcons<br><br><img src="uploads/20090625_155951_frmMain.jpg" border="0"><br><br>4. Add at least 3 icons 16x16 to the image list<br>5. add following code to Form1 <br><br><table width="99%"><tr><td><pre class="BBcode"><br>Option Explicit<br><br>Dim rsEvents As ADODB.Recordset<br><br><br>Private Sub Form_Load()<br>&nbsp;&nbsp;&nbsp; InitControls<br>&nbsp;&nbsp;&nbsp; InitEvents<br>&nbsp;&nbsp;&nbsp; InitTaskpanel<br>End Sub 'Form_Load()<br><br>Private Sub InitControls()<br><br>&nbsp;&nbsp;&nbsp; Label1.Caption = "EventID"<br>&nbsp;&nbsp;&nbsp; Label2.Caption = "EventText"<br>&nbsp;&nbsp;&nbsp; Label3.Caption = "Description"<br>&nbsp;&nbsp;&nbsp; Label4.Caption = "EventTime"<br><br>&nbsp;&nbsp;&nbsp; Text1.Text = ""<br>&nbsp;&nbsp;&nbsp; Text2.Text = ""<br>&nbsp;&nbsp;&nbsp; Text3.Text = ""<br>&nbsp;&nbsp;&nbsp; Text4.Text = ""<br><br>End Sub 'InitControls()<br><br>Private Sub InitEvents()<br><br>&nbsp;&nbsp;&nbsp; Dim i As Long<br><br>&nbsp;&nbsp;&nbsp; '-- create in memory recordset, your data can differ <br>&nbsp;&nbsp;&nbsp; Set rsEvents = New ADODB.Recordset<br>&nbsp;&nbsp;&nbsp; With rsEvents<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Fields.Append "EventID", adInteger<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Fields.Append "EventText", adVarChar, 255, adFldIsNullable<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Fields.Append "Description", adVarChar, 1000, adFldIsNullable<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Fields.Append "EventTime", adDate<br>&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp; rsEvents.Open<br><br>&nbsp;&nbsp;&nbsp; '-- add some events <br>&nbsp;&nbsp;&nbsp; For i = 1 To 30<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rsEvents.AddNew<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rsEvents!EventID = i<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rsEvents!EventText = "Event " &amp; Format(i, "00")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rsEvents!Description = "Brief description of event " &amp; Format(i, "00")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rsEvents!EventTime = Now()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rsEvents.Update<br>&nbsp;&nbsp;&nbsp; Next i<br><br>End Sub 'InitEvents()<br><br>Private Sub InitTaskpanel()<br><br>&nbsp;&nbsp;&nbsp; Dim Group As XtremeTaskPanel.TaskPanelGroup<br>&nbsp;&nbsp;&nbsp; Dim Item As XtremeTaskPanel.TaskPanelGroupItem<br><br><br>&nbsp;&nbsp;&nbsp; TaskPanel.Align = vbAlignLeft<br><br>&nbsp;&nbsp;&nbsp; Set Group = TaskPanel.Groups.Add(0, "Todays events")<br>&nbsp;&nbsp;&nbsp; With Group<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Tooltip = "These events occured today"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Special = True<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rsEvents.MoveFirst<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Do Until rsEvents.EOF<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Items.Add rsEvents!EventID, rsEvents!EventText, xtpTaskItemTypeLink, Int(3 * Rnd + 1)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rsEvents.MoveNext<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Loop<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Expanded = True<br>&nbsp;&nbsp;&nbsp; End With<br><br>&nbsp;&nbsp;&nbsp; TaskPanel.SetImageList TaskPanelIcons<br><br>End Sub 'InitTaskpanel()<br><br>Private Sub TaskPanel_ItemClick(ByVal Item As XtremeTaskPanel.ITaskPanelGroupItem)<br><br>&nbsp;&nbsp;&nbsp; Dim EventID As Long<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; EventID = Item.Id<br><br>&nbsp;&nbsp;&nbsp; rsEvents.Filter = "EventID=" &amp; EventID<br><br>&nbsp;&nbsp;&nbsp; If Not rsEvents.EOF Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Text1.Text = rsEvents!EventID<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Text2.Text = rsEvents!EventText<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Text3.Text = rsEvents!EventTime<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Text4.Text = rsEvents!Description<br>&nbsp;&nbsp;&nbsp; End If<br><br>&nbsp;&nbsp;&nbsp; rsEvents.Filter = adFilterNone<br><br>End Sub 'TaskPanel_ItemClick()<br><br></pre></td></tr></table><br><br>6. Run project and click on TaskPanelItems<br><br>Is this what you're looking for? <br><br>Peter <br>]]>
   </description>
   <pubDate>Thu, 25 Jun 2009 16:06:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14603&amp;PID=50302&amp;title=add-item#50302</guid>
  </item> 
  <item>
   <title><![CDATA[Add Item : Hello, the problem here is the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14603&amp;PID=50286&amp;title=add-item#50286</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2368">cmm2006</a><br /><strong>Subject:</strong> 14603<br /><strong>Posted:</strong> 25 June 2009 at 7:50am<br /><br /><P>Hello,</P><DIV></DIV>the problem here is the Item ID that I have to assign to the item so I can add it to the pannel. ID should be declared before...<DIV>thank you<img src="http://forum.codejock.com/smileys/smiley9.gif" border="0"></DIV>]]>
   </description>
   <pubDate>Thu, 25 Jun 2009 07:50:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14603&amp;PID=50286&amp;title=add-item#50286</guid>
  </item> 
  <item>
   <title><![CDATA[Add Item : Hi,   it&amp;#039;s not difficult...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14603&amp;PID=50238&amp;title=add-item#50238</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3156">Peter59</a><br /><strong>Subject:</strong> 14603<br /><strong>Posted:</strong> 23 June 2009 at 3:32pm<br /><br />Hi, <br><br>it's not difficult to do so: <br><br>- add a TaskPanelGroup to your task panel<br>- loop thru your recordset with events and add an TaskPanelItem for each event<br>- use event TaskPanel_ItemClick to get informed when an item is clicked<br><br>See attached sample (can't upload sample now, will upload later) <br><br>Peter<br><br><img src="http://forum.codejock.com/smileys/smiley38.gif" border="0" align="absmiddle"> cmm2006: Please add a signature to your posts so all members can see what version do you use... <br> ]]>
   </description>
   <pubDate>Tue, 23 Jun 2009 15:32:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14603&amp;PID=50238&amp;title=add-item#50238</guid>
  </item> 
  <item>
   <title><![CDATA[Add Item : Hi,  I have a recordset containing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14603&amp;PID=50237&amp;title=add-item#50237</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2368">cmm2006</a><br /><strong>Subject:</strong> 14603<br /><strong>Posted:</strong> 23 June 2009 at 2:25pm<br /><br />Hi, <DIV>I have a recordset containing a number of records of events, and I am trying to add today's events to agroup (each event is an item). how can I be able to do so?</DIV><DIV>thank you</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Visual Basic 6 SP6</DIV><DIV>CJ 12.1.1</DIV><DIV>Windows XP Pro</DIV>]]>
   </description>
   <pubDate>Tue, 23 Jun 2009 14:25:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14603&amp;PID=50237&amp;title=add-item#50237</guid>
  </item> 
 </channel>
</rss>