<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Add a icon and use DockItem Class in REALbasic</title>
	<atom:link href="http://realbasic.tutspolis.com/tutorials/add-a-icon-and-use-dockitem-class-in-realbasic/feed/" rel="self" type="application/rss+xml" />
	<link>http://realbasic.tutspolis.com/tutorials/add-a-icon-and-use-dockitem-class-in-realbasic/</link>
	<description>Tutorials - Tutspolis.com</description>
	<lastBuildDate>Thu, 09 Sep 2010 17:34:11 -0700</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: emreaktrk</title>
		<link>http://realbasic.tutspolis.com/tutorials/add-a-icon-and-use-dockitem-class-in-realbasic/comment-page-1/#comment-952</link>
		<dc:creator>emreaktrk</dc:creator>
		<pubDate>Wed, 24 Mar 2010 14:43:14 +0000</pubDate>
		<guid isPermaLink="false">http://realbasic.tutspolis.com/?p=141#comment-952</guid>
		<description>I wonder if you can make a tutorial about how to add image to your Window.

Thanks for your helps.</description>
		<content:encoded><![CDATA[<p>I wonder if you can make a tutorial about how to add image to your Window.</p>
<p>Thanks for your helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jakub Pawlak</title>
		<link>http://realbasic.tutspolis.com/tutorials/add-a-icon-and-use-dockitem-class-in-realbasic/comment-page-1/#comment-953</link>
		<dc:creator>Jakub Pawlak</dc:creator>
		<pubDate>Wed, 24 Mar 2010 08:32:26 +0000</pubDate>
		<guid isPermaLink="false">http://realbasic.tutspolis.com/?p=141#comment-953</guid>
		<description>You can use simple Canvas Control available in REALbasic. Then you change the backdrop to image file.</description>
		<content:encoded><![CDATA[<p>You can use simple Canvas Control available in REALbasic. Then you change the backdrop to image file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt86</title>
		<link>http://realbasic.tutspolis.com/tutorials/add-a-icon-and-use-dockitem-class-in-realbasic/comment-page-1/#comment-743</link>
		<dc:creator>matt86</dc:creator>
		<pubDate>Thu, 11 Feb 2010 16:54:54 +0000</pubDate>
		<guid isPermaLink="false">http://realbasic.tutspolis.com/?p=141#comment-743</guid>
		<description>Thanks Jakup,
I display a trasparent dragBadge and the dragBadge is smaller than mail application dragBadge. Here my code



  Dim p, m As Picture
  
  p = NewPicture (128,128,32) // (width, height, depth)
  
  &#039;p.Graphics.ForeColor = RGB (202,38,10) // red color
  &#039;p.graphics.FillOval (75,3,40,40) // create a oval in right top corner of our icon
  p.Graphics.drawpicture (dragBadge,75,3)
  
  p.Graphics.ForeColor = RGB (255,255,255) // white color
  p.Graphics.TextFont = &quot;Arial&quot; // use font Arial
  p.Graphics.TextSize = 12 // text size
  p.Graphics.Bold = True // make the text bold
  p.Graphics.DrawString (count,85,20) // draw 5 in right top corner of our icon
  
  
  m = NewPicture (128,128,32)
  
  &#039;m.Graphics.ForeColor = RGB (0,0,0)
  &#039;m.graphics.FillOval (75,3,26,26)
  m.Graphics.drawpicture (dragBadge,75,3)
  
  p.Graphics.ForeColor = RGB(255,255,255) // delete white color
  m.Graphics.TextFont = &quot;Arial&quot;
  m.Graphics.TextSize = 12
  m.Graphics.Bold = True
  m.Graphics.DrawString (count,85,20)
  
  p.Mask.Graphics.DrawPicture (m,0,0) //add the Mask to our picture
  
  App.DockItem.Graphics.DrawPicture (p,0,0) //draw the picture to the Dock
  App.DockItem.UpdateNow // update the Dock picture</description>
		<content:encoded><![CDATA[<p>Thanks Jakup,<br />
I display a trasparent dragBadge and the dragBadge is smaller than mail application dragBadge. Here my code</p>
<p>  Dim p, m As Picture</p>
<p>  p = NewPicture (128,128,32) // (width, height, depth)</p>
<p>  &#8216;p.Graphics.ForeColor = RGB (202,38,10) // red color<br />
  &#8216;p.graphics.FillOval (75,3,40,40) // create a oval in right top corner of our icon<br />
  p.Graphics.drawpicture (dragBadge,75,3)</p>
<p>  p.Graphics.ForeColor = RGB (255,255,255) // white color<br />
  p.Graphics.TextFont = &#8220;Arial&#8221; // use font Arial<br />
  p.Graphics.TextSize = 12 // text size<br />
  p.Graphics.Bold = True // make the text bold<br />
  p.Graphics.DrawString (count,85,20) // draw 5 in right top corner of our icon</p>
<p>  m = NewPicture (128,128,32)</p>
<p>  &#8216;m.Graphics.ForeColor = RGB (0,0,0)<br />
  &#8216;m.graphics.FillOval (75,3,26,26)<br />
  m.Graphics.drawpicture (dragBadge,75,3)</p>
<p>  p.Graphics.ForeColor = RGB(255,255,255) // delete white color<br />
  m.Graphics.TextFont = &#8220;Arial&#8221;<br />
  m.Graphics.TextSize = 12<br />
  m.Graphics.Bold = True<br />
  m.Graphics.DrawString (count,85,20)</p>
<p>  p.Mask.Graphics.DrawPicture (m,0,0) //add the Mask to our picture</p>
<p>  App.DockItem.Graphics.DrawPicture (p,0,0) //draw the picture to the Dock<br />
  App.DockItem.UpdateNow // update the Dock picture</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jakub Pawlak</title>
		<link>http://realbasic.tutspolis.com/tutorials/add-a-icon-and-use-dockitem-class-in-realbasic/comment-page-1/#comment-742</link>
		<dc:creator>Jakub Pawlak</dc:creator>
		<pubDate>Thu, 11 Feb 2010 15:52:37 +0000</pubDate>
		<guid isPermaLink="false">http://realbasic.tutspolis.com/?p=141#comment-742</guid>
		<description>Simple add the image (dragBadge1-2.tif) to project tab and then use the image name to display: p.graphics.drawpicture (dragBadge1-2,75,3)</description>
		<content:encoded><![CDATA[<p>Simple add the image (dragBadge1-2.tif) to project tab and then use the image name to display: p.graphics.drawpicture (dragBadge1-2,75,3)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt86</title>
		<link>http://realbasic.tutspolis.com/tutorials/add-a-icon-and-use-dockitem-class-in-realbasic/comment-page-1/#comment-741</link>
		<dc:creator>matt86</dc:creator>
		<pubDate>Thu, 11 Feb 2010 15:50:04 +0000</pubDate>
		<guid isPermaLink="false">http://realbasic.tutspolis.com/?p=141#comment-741</guid>
		<description>Mail application on Mac, not use the FillOval method for display the number of emails received, but an image called &quot;dragBadge1-2.tiff&quot;. If I wanted to also make the picture as I do?

dim f as folderItem
dim img,p,m as picture

f = GetFolderItem(&quot;dragBadge1-2.tiff&quot;)

if f.Exists then
img = f.OpenAsPicture
p = NewPicture (26,26,32)
p.graphics.drawpicture img,75,3

.....

else 

msgbox &quot;The image dragBadge1-2.tiff not exist!&quot;

end if

I receive a error msgbox, where is the &quot;dragBadge1-2.tiff&quot; image in my app? If i check into my App Resources i found the dragBadge1-2.tiff image</description>
		<content:encoded><![CDATA[<p>Mail application on Mac, not use the FillOval method for display the number of emails received, but an image called &#8220;dragBadge1-2.tiff&#8221;. If I wanted to also make the picture as I do?</p>
<p>dim f as folderItem<br />
dim img,p,m as picture</p>
<p>f = GetFolderItem(&#8220;dragBadge1-2.tiff&#8221;)</p>
<p>if f.Exists then<br />
img = f.OpenAsPicture<br />
p = NewPicture (26,26,32)<br />
p.graphics.drawpicture img,75,3</p>
<p>&#8230;..</p>
<p>else </p>
<p>msgbox &#8220;The image dragBadge1-2.tiff not exist!&#8221;</p>
<p>end if</p>
<p>I receive a error msgbox, where is the &#8220;dragBadge1-2.tiff&#8221; image in my app? If i check into my App Resources i found the dragBadge1-2.tiff image</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt86</title>
		<link>http://realbasic.tutspolis.com/tutorials/add-a-icon-and-use-dockitem-class-in-realbasic/comment-page-1/#comment-740</link>
		<dc:creator>matt86</dc:creator>
		<pubDate>Thu, 11 Feb 2010 15:15:54 +0000</pubDate>
		<guid isPermaLink="false">http://realbasic.tutspolis.com/?p=141#comment-740</guid>
		<description>How do I take the image in the Resources folder of my application?</description>
		<content:encoded><![CDATA[<p>How do I take the image in the Resources folder of my application?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jakub Pawlak</title>
		<link>http://realbasic.tutspolis.com/tutorials/add-a-icon-and-use-dockitem-class-in-realbasic/comment-page-1/#comment-739</link>
		<dc:creator>Jakub Pawlak</dc:creator>
		<pubDate>Thu, 11 Feb 2010 15:12:46 +0000</pubDate>
		<guid isPermaLink="false">http://realbasic.tutspolis.com/?p=141#comment-739</guid>
		<description>I don&#039;t understand the question.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t understand the question.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt86</title>
		<link>http://realbasic.tutspolis.com/tutorials/add-a-icon-and-use-dockitem-class-in-realbasic/comment-page-1/#comment-738</link>
		<dc:creator>matt86</dc:creator>
		<pubDate>Thu, 11 Feb 2010 15:08:22 +0000</pubDate>
		<guid isPermaLink="false">http://realbasic.tutspolis.com/?p=141#comment-738</guid>
		<description>OK, but how do I take the image from my application?</description>
		<content:encoded><![CDATA[<p>OK, but how do I take the image from my application?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jakub Pawlak</title>
		<link>http://realbasic.tutspolis.com/tutorials/add-a-icon-and-use-dockitem-class-in-realbasic/comment-page-1/#comment-737</link>
		<dc:creator>Jakub Pawlak</dc:creator>
		<pubDate>Thu, 11 Feb 2010 15:06:28 +0000</pubDate>
		<guid isPermaLink="false">http://realbasic.tutspolis.com/?p=141#comment-737</guid>
		<description>Hi,

simple use Graphics.DrawPicture method.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>simple use Graphics.DrawPicture method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt86</title>
		<link>http://realbasic.tutspolis.com/tutorials/add-a-icon-and-use-dockitem-class-in-realbasic/comment-page-1/#comment-736</link>
		<dc:creator>matt86</dc:creator>
		<pubDate>Thu, 11 Feb 2010 15:02:32 +0000</pubDate>
		<guid isPermaLink="false">http://realbasic.tutspolis.com/?p=141#comment-736</guid>
		<description>Hi Jakub, if I wanted to put an image instead of filloval how do I do?</description>
		<content:encoded><![CDATA[<p>Hi Jakub, if I wanted to put an image instead of filloval how do I do?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
