<?xml version="1.0" encoding="UTF-8" ?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US"><title type="html">Emerson Santon Reed</title><subtitle type="html" /><id>http://weblogs.foxite.com/emersonreed/atom.aspx</id><link rel="alternate" type="text/html" href="http://weblogs.foxite.com/emersonreed/default.aspx" /><link rel="self" type="application/atom+xml" href="http://weblogs.foxite.com/emersonreed/atom.aspx" /><generator uri="http://communityserver.org" version="2.0.60217.2664">Community Server</generator><updated>2006-01-23T19:18:00Z</updated><entry><title>New ThemedControls version (3.2.0) - Updated</title><link rel="alternate" type="text/html" href="http://weblogs.foxite.com/emersonreed/archive/2008/03/27/5832.aspx" /><id>http://weblogs.foxite.com/emersonreed/archive/2008/03/27/5832.aspx</id><published>2008-03-27T15:56:00Z</published><updated>2008-03-27T15:56:00Z</updated><content type="html">&lt;p&gt;Today I've posted a new &lt;a href="http://www.codeplex.com/VFPX/Wiki/View.aspx?title=ThemedControls&amp;amp;referringTitle=Home" target="_blank"&gt;ThemedControls&lt;/a&gt; version (3.2.0) at &lt;a href="http://www.codeplex.com/VFPX" target="_blank"&gt;VFPX&lt;/a&gt; site.&lt;/p&gt; &lt;p&gt;You can download it &lt;a href="http://www.codeplex.com/VFPX/Release/ProjectReleases.aspx?ReleaseId=7003" target="_blank"&gt;here&lt;/a&gt;. &lt;/p&gt; &lt;p&gt;Changes in this version:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;&lt;strong&gt;OutlookNavBar&lt;/strong&gt;&lt;br&gt;- Implemented a lot of suggestions.&lt;br&gt;- Now it works as expected in toolbars.&lt;br&gt; &lt;li&gt;&lt;strong&gt;ToolBox&lt;/strong&gt; &lt;em&gt;(New control)&lt;/em&gt;&lt;br&gt;- Similar to the new VFP ToolBox;&lt;br&gt;- Compatible with Outlook themes (just like OutlookNavBar);&lt;br&gt;- Keyboard navigation enabled.&lt;br&gt; &lt;li&gt;&lt;strong&gt;ZoomNavBar&lt;br&gt;&lt;/strong&gt;- Implemented a lot of suggestions;&lt;br&gt;- &lt;font color="#0000a0"&gt;Compatible with Outlook themes (just like OutlookNavBar);&lt;/font&gt;&lt;br&gt;- Now it works as expected in toolbars;&lt;br&gt;- Added a bar and reflection effect;&lt;br&gt;- Added balloons to show button's description;&lt;br&gt;- Added the capability to display a menu when button is clicked.&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;Currently, I'm working on a help for this new version. ASAP I'll post them. Stay tuned! &lt;/p&gt; &lt;p&gt;If you have any questions, suggestions or want to report bugs, please contact me.  &lt;p&gt;Some features in this new version could not be implemented without the help and cool ideas from this folks: &lt;a href="/bernardbout/"&gt;Bernard Bout&lt;/a&gt;, &lt;a href="/vfpimaging/"&gt;César Chalom&lt;/a&gt; and &lt;a href="http://www.ctl32.com.ar/"&gt;Carlos Alloatti&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Thank you guys!&lt;/p&gt; &lt;p&gt;Here are some screenshots...&lt;/p&gt;&lt;a href="/photos/emersonreed/images/original/OutlookNavBar_screenshot.aspx" target="_blank"&gt;&lt;/a&gt;&lt;a href="/photos/emersonreed/images/original/ToolBox_screenshot.aspx" target="_blank"&gt;&lt;/a&gt;&lt;a href="/photos/emersonreed/images/original/ZoomNavBar_with_Ctl32_BalloonTip_screenshot.aspx" target="_blank"&gt;&lt;/a&gt; &lt;p&gt;&lt;a href="/photos/emersonreed/images/original/OutlookNavBar_screenshot.aspx" target="_blank"&gt;&lt;img src="/photos/emersonreed/images/original/OutlookNavBar_screenshot.aspx" border="0"&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp; &lt;a href="/photos/emersonreed/images/original/ToolBox_screenshot.aspx" target="_blank"&gt;&lt;img src="/photos/emersonreed/images/original/ToolBox_screenshot.aspx" border="0"&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp; &lt;a href="/photos/emersonreed/images/original/ZoomNavBar_menu_button_screenshot.aspx" target="_blank"&gt;&lt;img src="/photos/emersonreed/images/original/ZoomNavBar_menu_button_screenshot.aspx" border="0"&gt;&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;a href="/photos/emersonreed/images/original/ZoomNavBar_with_Ctl32_BalloonTip_screenshot.aspx" target="_blank"&gt;&lt;img src="/photos/emersonreed/images/original/ZoomNavBar_with_Ctl32_BalloonTip_screenshot.aspx" border="0"&gt;&lt;/a&gt;&lt;a href="/photos/emersonreed/images/original/ZoomNavBar_menu_button_screenshot.aspx" target="_blank"&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://weblogs.foxite.com/aggbug.aspx?PostID=5832" width="1" height="1"&gt;</content><author><name>emersonreed</name><uri>http://weblogs.foxite.com/members/emersonreed.aspx</uri></author></entry><entry><title>C5 error in a grid with user defined column and header members</title><link rel="alternate" type="text/html" href="http://weblogs.foxite.com/emersonreed/archive/2007/11/23/C5_error_in_a_grid_with_user_defined_column_and_header_members.aspx" /><id>http://weblogs.foxite.com/emersonreed/archive/2007/11/23/C5_error_in_a_grid_with_user_defined_column_and_header_members.aspx</id><published>2007-11-23T13:39:00Z</published><updated>2007-11-23T13:39:00Z</updated><content type="html">&lt;P&gt;Some days ago, while developing a new application, I get a C5 error in VFP 9 SP 2 that crashes my application.&lt;/P&gt;
&lt;P&gt;Making some tests I found that the error occurs when I use a command in a menu item to run a form with a grid with user defined column and header members.&lt;/P&gt;
&lt;P&gt;The only way to avoid this error was change the command in the menu item to a procedure to call the form.&lt;/P&gt;
&lt;P&gt;Note that the same application run without any error in VFP 9 SP 2 prior versions.&lt;/P&gt;
&lt;P&gt;I've made a sample application and posted at Foxite and UT forums with the steps to reproduce the error.&lt;/P&gt;
&lt;P&gt;After receive confirmations from Carlos Alloatti and Sergey Berezniker (thanks for both) that this was a bug, I reported it at MS Connect site as you can see here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=311857" target=_blank&gt;https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=311857&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This bug was also reported at &lt;A href="http://fox.wikis.com/wc.dll?Wiki~VFP9SP2BugList~Wiki" target=_blank&gt;Fox Wikis&lt;/A&gt; (thanks to Russell Campbell).&lt;/P&gt;
&lt;P&gt;If you want to see this error fixed, please visit the &lt;A href="https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=311857" target=_blank&gt;bug link&lt;/A&gt;, download the sample, follow the instructions, validate the bug and vote to fix it. 
&lt;P&gt;VFP community count on you!&lt;/P&gt;&lt;img src="http://weblogs.foxite.com/aggbug.aspx?PostID=5427" width="1" height="1"&gt;</content><author><name>emersonreed</name><uri>http://weblogs.foxite.com/members/emersonreed.aspx</uri></author></entry><entry><title>A new project is on the way...</title><link rel="alternate" type="text/html" href="http://weblogs.foxite.com/emersonreed/archive/2007/09/17/A_new_project_is_on_the_way.aspx" /><link rel="enclosure" type="application/x-zip-compressed" length="704328" href="http://weblogs.foxite.com/emersonreed/attachment/4957.ashx" /><id>http://weblogs.foxite.com/emersonreed/archive/2007/09/17/A_new_project_is_on_the_way.aspx</id><published>2007-09-16T23:35:00Z</published><updated>2007-09-16T23:35:00Z</updated><content type="html">&lt;P&gt;Currently, I'm working on a new project named ThemedControls.&lt;/P&gt;
&lt;P&gt;This project includes new versions of OutlookNavBar (old Outlook2003Bar) and ZoomNavBar controls.&lt;/P&gt;
&lt;P&gt;For now, I've made a short video (there's a link to download the zipped file at the bottom of this post) to let the community see what's coming in the next few days.&lt;/P&gt;
&lt;P&gt;Enjoy it!&lt;/P&gt;&lt;img src="http://weblogs.foxite.com/aggbug.aspx?PostID=4957" width="1" height="1"&gt;</content><author><name>emersonreed</name><uri>http://weblogs.foxite.com/members/emersonreed.aspx</uri></author></entry><entry><title>Here comes a new control... ZoomNavBar!</title><link rel="alternate" type="text/html" href="http://weblogs.foxite.com/emersonreed/archive/2007/06/22/ZoomNavBar_100.aspx" /><link rel="enclosure" type="application/x-zip-compressed" length="181510" href="http://weblogs.foxite.com/emersonreed/attachment/4157.ashx" /><id>http://weblogs.foxite.com/emersonreed/archive/2007/06/22/ZoomNavBar_100.aspx</id><published>2007-06-22T11:50:00Z</published><updated>2007-06-22T11:50:00Z</updated><content type="html">&lt;P&gt;A long time ago I saw a very cool control (I don't remember where)&amp;nbsp;that "zoom" the image button when it receives the focus. So I think... I could do something like this in VFP!&lt;/P&gt;
&lt;P&gt;After some days working at my lunch time in this project, I finally have a beta version.&lt;/P&gt;
&lt;P&gt;Take a look at this screenshot:&lt;/P&gt;
&lt;P&gt;&lt;A HREF="/photos/emersonreed/images/original/ZoomNavBar_100.aspx" target=_blank&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A HREF="/photos/emersonreed/images/original/ZoomNavBar_100_screenshot.aspx" target=_blank&gt;&lt;IMG src="/photos/emersonreed/images/original/ZoomNavBar_100_screenshot.aspx" border=0&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;At the bottom of this post there's a link to download&amp;nbsp;a zip file including the class and a sample (with a help) on how to use this control.&lt;/P&gt;
&lt;P&gt;Is this cool? So help me to improve it giving some feedback, suggestions or reporting bugs.&lt;/P&gt;
&lt;P&gt;VFP rocks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://weblogs.foxite.com/aggbug.aspx?PostID=4157" width="1" height="1"&gt;</content><author><name>emersonreed</name><uri>http://weblogs.foxite.com/members/emersonreed.aspx</uri></author></entry><entry><title>OutlookNavBar control preview (Attached file updated)</title><link rel="alternate" type="text/html" href="http://weblogs.foxite.com/emersonreed/archive/2007/05/07/OutlookNavBar_control_preview.aspx" /><link rel="enclosure" type="application/x-zip-compressed" length="185993" href="http://weblogs.foxite.com/emersonreed/attachment/3745.ashx" /><id>http://weblogs.foxite.com/emersonreed/archive/2007/05/07/OutlookNavBar_control_preview.aspx</id><published>2007-05-07T18:25:00Z</published><updated>2007-05-07T18:25:00Z</updated><content type="html">&lt;P&gt;Like I said in some VFP forums, I'm working on a new control named OutlookNavBar (download&amp;nbsp;the project&amp;nbsp;clicking in the link&amp;nbsp;at the end&amp;nbsp;of this post).&lt;/P&gt;
&lt;P&gt;This new control basically do the same that Outlook2003Bar does, but not use GDI+ to create images and handle Themes tasks using a new class named ThemesManager.&lt;/P&gt;
&lt;P&gt;Now the project has two classes:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;OutlookNavBar.vcx&lt;/EM&gt;&lt;/STRONG&gt; - with the new improved control based on Outlook2003Bar;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;ThemedControls.vcx&lt;/EM&gt;&lt;/STRONG&gt; - with&amp;nbsp;lot of "themed" controls and a subclass of OutlookNavBar named ThemedOutlookNavBar.&lt;/P&gt;
&lt;P&gt;How this new &lt;STRONG&gt;&lt;EM&gt;ThemedControls&lt;/EM&gt;&lt;/STRONG&gt; class work?&lt;/P&gt;
&lt;P&gt;Firstly&amp;nbsp;you need to do is create an object based on ThemesManager control and&amp;nbsp;place them in a property named ThemesManager on _Screen and destroy the object when it will not used anymore - as you can see in Load and Unload method of ThemedForm control.&lt;BR&gt;This object will be used to handle all theme changes.&lt;/P&gt;
&lt;P&gt;So, create a form and place the controls from &lt;EM&gt;&lt;STRONG&gt;ThemedControls&lt;/STRONG&gt;&lt;/EM&gt; class and voila!&lt;/P&gt;
&lt;P&gt;Take a look at Sample form to a better&amp;nbsp;view of&amp;nbsp;how this class&amp;nbsp;works.&lt;/P&gt;
&lt;P&gt;ASAP, I will post more details.&lt;/P&gt;
&lt;P&gt;Feel free to make comments, send suggestions or report any bug.&lt;/P&gt;
&lt;P&gt;Here is a screenshot...&lt;/P&gt;&lt;A href="/photos/emersonreed/images/original/ThemedControls_preview.aspx" target=_blank&gt;&lt;IMG src="/photos/emersonreed/images/original/ThemedControls_preview.aspx" border=0&gt;&lt;/A&gt;&lt;img src="http://weblogs.foxite.com/aggbug.aspx?PostID=3745" width="1" height="1"&gt;</content><author><name>emersonreed</name><uri>http://weblogs.foxite.com/members/emersonreed.aspx</uri></author></entry><entry><title>Outlook2003Bar Version 1.0.2, a VFPX project</title><link rel="alternate" type="text/html" href="http://weblogs.foxite.com/emersonreed/archive/2007/03/13/Outlook2003Bar_Version_1_0_2_a_VFPX_project.aspx" /><id>http://weblogs.foxite.com/emersonreed/archive/2007/03/13/Outlook2003Bar_Version_1_0_2_a_VFPX_project.aspx</id><published>2007-03-13T16:14:00Z</published><updated>2007-03-13T16:14:00Z</updated><content type="html">&lt;P&gt;I've posted a new Outlook2003Bar version at &lt;A href="http://www.codeplex.com/Wiki/View.aspx?ProjectName=VFPX"&gt;VFPX&lt;/A&gt;.&lt;BR&gt;Download &lt;A href="http://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=VFPX&amp;amp;ReleaseId=815"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This version has a bug fix with Citrix environment.&lt;/P&gt;
&lt;P&gt;Read the help file in Outlook2003Bar\VCX folder to know how to use the control.&lt;BR&gt;&lt;BR&gt;Please, feel free to make comments, send suggestions or request bug fixes.&lt;BR&gt;&lt;BR&gt;VFP rocks! 
&lt;HR align=100%&gt;
This control is part of &lt;A href="http://www.codeplex.com/Wiki/View.aspx?ProjectName=VFPX" target=top&gt;VFPX&lt;/A&gt;, a Visual FoxPro Community effort to create open source add-ons for Visual FoxPro 9.0. 
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;A HREF="/photos/emersonreed/images/original/VFPX_banner_small.aspx" target=_blank&gt;&lt;IMG height=64 src="/photos/emersonreed/images/original/VFPX_banner_small.aspx" width=174 border=0&gt;&lt;/A&gt;&lt;/P&gt;&lt;img src="http://weblogs.foxite.com/aggbug.aspx?PostID=3442" width="1" height="1"&gt;</content><author><name>emersonreed</name><uri>http://weblogs.foxite.com/members/emersonreed.aspx</uri></author></entry><entry><title>I am tagged! (Too late...)</title><link rel="alternate" type="text/html" href="http://weblogs.foxite.com/emersonreed/archive/2007/01/31/I_am_tagged.aspx" /><id>http://weblogs.foxite.com/emersonreed/archive/2007/01/31/I_am_tagged.aspx</id><published>2007-01-31T15:05:00Z</published><updated>2007-01-31T15:05:00Z</updated><content type="html">&lt;P&gt;I know that the "Tag Game" stopped a long days ago, but I've been very busy and can't&amp;nbsp;answer to César Chalom and Rick Borup (both "tagged" me) until now, but better late than never...&lt;/P&gt;
&lt;P&gt;1. Despite of living in São Paulo, I'm a Flamengo's fan (Rio de Janeiro soccer team)!&amp;nbsp; &lt;BR&gt;Everybody always asked me why...&amp;nbsp; &lt;BR&gt;My father was Santos's fan and my mother is Palmeiras's fan. They ever tried to influence me, but at that time, Flamengo had a great team (Zico, Junior, Andrade, Adílio, Nunes, Leandro and company) and they won a lot of championships (World Soccer's Team, Brazilian and Carioca) and I had never seen another team play like this. So I decided to be a fan of the Flamengo!&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp; &lt;BR&gt;2. I don't smoke and don't drink.&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp; &lt;BR&gt;3. I love music! My favorite bands are: Jars of Clay, dc Talk, Newsboys, Third Day, Kutless, Oficina G3, Resgate, U2, a-ha, New Order, Tears for Fears, Information Society and Kon Kan.&amp;nbsp; &lt;BR&gt;I also like to watch some TV Series like Smallville, The O. C., Seventh Heaven and Everwood.&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp; &lt;BR&gt;4. When I'm nervous, I have a bad habit to scratch my head. My wife and my little daughter always reprehend me, but I still didn't get to stop. I think that I get this soon, because my wife helped me to stop another bad habit a few years ago: to gnaw nails.&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp; &lt;BR&gt;5. When I began to date Georgea (my beloved wife), she told me that she was seated in a chair behind me in Baptist Church in my baptism day and that Angelica (my mother-in-law) said to her: "Oh, there is a beautiful boy in your front!" and she responded "I saw no one".&amp;nbsp; &lt;BR&gt;I want to say to Georgea: despite of this, honey, I still loving you!&amp;nbsp;&amp;nbsp; ; )&lt;/P&gt;
&lt;P&gt;I would like to&amp;nbsp;"tag" these people:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://www.ctl32.com.ar"&gt;Carlos Alloatti&lt;/A&gt; 
&lt;LI&gt;&lt;A href="/luisnavas/"&gt;Luis Navas&lt;/A&gt; 
&lt;LI&gt;Ken Murphy 
&lt;LI&gt;Pete Sass 
&lt;LI&gt;Mike Gagnon&lt;/LI&gt;&lt;/UL&gt;&lt;img src="http://weblogs.foxite.com/aggbug.aspx?PostID=3213" width="1" height="1"&gt;</content><author><name>emersonreed</name><uri>http://weblogs.foxite.com/members/emersonreed.aspx</uri></author></entry><entry><title>SplitterBar class</title><link rel="alternate" type="text/html" href="http://weblogs.foxite.com/emersonreed/archive/2006/11/01/SplitterBar_class.aspx" /><link rel="enclosure" type="application/x-zip-compressed" length="36671" href="http://weblogs.foxite.com/emersonreed/attachment/2782.ashx" /><id>http://weblogs.foxite.com/emersonreed/archive/2006/11/01/SplitterBar_class.aspx</id><published>2006-11-01T18:43:00Z</published><updated>2006-11-01T18:43:00Z</updated><content type="html">&lt;P&gt;I've developed a SplitterBar class and would like to receive some feedback about them.&lt;/P&gt;
&lt;P&gt;Features:&lt;BR&gt;- Anchor&lt;BR&gt;- Collapse/expand "panels"&lt;/P&gt;
&lt;P&gt;Download the post attachment file&amp;nbsp;below&amp;nbsp;and unzip them.&lt;BR&gt;Open the project and run Form1, Form2 and Form3 samples.&lt;BR&gt;Try to "resize" the panels or click on the "arrows".&lt;BR&gt;&lt;BR&gt;The class will only work with VFP 9.&lt;/P&gt;
&lt;P&gt;Please, send suggestions or report bugs.&lt;/P&gt;
&lt;P&gt;This&amp;nbsp;class is based on Christof Wollenhaupt class.&lt;/P&gt;&lt;img src="http://weblogs.foxite.com/aggbug.aspx?PostID=2782" width="1" height="1"&gt;</content><author><name>emersonreed</name><uri>http://weblogs.foxite.com/members/emersonreed.aspx</uri></author></entry><entry><title>Outlook2003Bar Version 1.0.1, a VFPX project</title><link rel="alternate" type="text/html" href="http://weblogs.foxite.com/emersonreed/archive/2006/10/26/Outlook2003Bar_Version_1_0_1_a_VFPX_project.aspx" /><id>http://weblogs.foxite.com/emersonreed/archive/2006/10/26/Outlook2003Bar_Version_1_0_1_a_VFPX_project.aspx</id><published>2006-10-26T15:46:00Z</published><updated>2006-10-26T15:46:00Z</updated><content type="html">&lt;P&gt;I've posted a new Outlook2003Bar version at &lt;A href="http://www.codeplex.com/Wiki/View.aspx?ProjectName=VFPX"&gt;VFPX&lt;/A&gt;.&lt;BR&gt;Download &lt;A href="http://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=VFPX&amp;amp;ReleaseId=815"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This version has minor bug fixes and some help updates.&lt;/P&gt;
&lt;P&gt;Read the help file in Outlook2003Bar\VCX folder to know how to use the control.&lt;BR&gt;&lt;BR&gt;Please, feel free to make comments, send suggestions or request bug fixes.&lt;BR&gt;&lt;BR&gt;VFP rocks!
&lt;HR align=100%&gt;
This control is part of &lt;A href="http://www.codeplex.com/Wiki/View.aspx?ProjectName=VFPX" target=top&gt;VFPX&lt;/A&gt;, a Visual FoxPro Community effort to create open source add-ons for Visual FoxPro 9.0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;A HREF="/photos/emersonreed/images/original/VFPX_banner_small.aspx" target=_blank&gt;&lt;IMG height=64 src="/photos/emersonreed/images/original/VFPX_banner_small.aspx" width=174 border=0&gt;&lt;/A&gt;&lt;/P&gt;&lt;img src="http://weblogs.foxite.com/aggbug.aspx?PostID=2732" width="1" height="1"&gt;</content><author><name>emersonreed</name><uri>http://weblogs.foxite.com/members/emersonreed.aspx</uri></author></entry><entry><title>Outlook2003Bar control is part of VFPX now!</title><link rel="alternate" type="text/html" href="http://weblogs.foxite.com/emersonreed/archive/2006/10/05/Outlook2003Bar_control_is_part_of_VFPX_now.aspx" /><id>http://weblogs.foxite.com/emersonreed/archive/2006/10/05/Outlook2003Bar_control_is_part_of_VFPX_now.aspx</id><published>2006-10-05T17:59:00Z</published><updated>2006-10-05T17:59:00Z</updated><content type="html">&lt;DIV&gt;&lt;FONT face=Arial&gt;&lt;FONT size=2&gt;As&amp;nbsp;everybody can see in my previous posts,&amp;nbsp;from July I start to develop a control&amp;nbsp;(entirely written in&amp;nbsp;&lt;/FONT&gt;&lt;A href="http://msdn.microsoft.com/vfoxpro"&gt;&lt;FONT size=2&gt;VFP&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2&gt;) with the same look and feel of the Microsoft Outlook 2003 shortcut bar.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;After some days developing&lt;/FONT&gt;&lt;FONT face=Arial&gt;, I've posted a beta version of control,&amp;nbsp;waiting for a feedback from&amp;nbsp;&lt;A href="http://msdn.microsoft.com/vfoxpro"&gt;VFP&lt;/A&gt; community.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;With a positive feedback, I start to improve the control&amp;nbsp;and, after one month (in August), the control was completed&lt;/FONT&gt;&lt;FONT face=Arial&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial&gt;&lt;FONT size=2&gt;Again, I've posted the control&amp;nbsp;and publish them&amp;nbsp;in a&amp;nbsp;famous &lt;/FONT&gt;&lt;A href="http://www.universalthread.com/"&gt;&lt;FONT size=2&gt;site&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2&gt;&amp;nbsp;about &lt;/FONT&gt;&lt;A href="http://msdn.microsoft.com/vfoxpro"&gt;&lt;FONT size=2&gt;VFP&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;With a great repercussion, the control was downloaded more than &lt;/FONT&gt;&lt;FONT face=Arial&gt;3.000 times!&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;From the beggining, the only intent, was contribute with &lt;/FONT&gt;&lt;FONT face=Arial&gt;&lt;A href="http://msdn.microsoft.com/vfoxpro"&gt;VFP&lt;/A&gt; community, by the fact that this community always help me.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;So, to make the control more&amp;nbsp;notorious and share his code&lt;/FONT&gt;&lt;FONT face=Arial&gt; with the community, I've submitted the project&amp;nbsp;to &lt;A href="http://www.codeplex.com/Wiki/View.aspx?ProjectName=VFPX"&gt;VFPX&lt;/A&gt; managers.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial&gt;&lt;A href="http://www.codeplex.com/Wiki/View.aspx?ProjectName=VFPX"&gt;&lt;FONT size=2&gt;VFPX&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2&gt; is an effort&amp;nbsp;from &lt;/FONT&gt;&lt;A href="http://msdn.microsoft.com/vfoxpro"&gt;&lt;FONT size=2&gt;VFP&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2&gt; community (mentioned in a monthly &lt;/FONT&gt;&lt;A href="http://msdn.microsoft.com/vfoxpro/letters/07072006/"&gt;&lt;FONT size=2&gt;letter&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2&gt;&amp;nbsp;from &lt;/FONT&gt;&lt;A href="http://msdn.microsoft.com/vfoxpro"&gt;&lt;FONT size=2&gt;VFP&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2&gt; development team manager)&amp;nbsp;to create open source "add-ins", complementing Microsoft efforts&amp;nbsp;with &lt;/FONT&gt;&lt;A href="http://msdn.com/vfoxpro/roadmap"&gt;&lt;FONT size=2&gt;Sedna&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2&gt;&amp;nbsp;code named project, to extend &lt;/FONT&gt;&lt;A href="http://msdn.microsoft.com/vfoxpro"&gt;&lt;FONT size=2&gt;VFP&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2&gt;9 functionalities.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;The project was approved and receive a lot of recommendations from &lt;/FONT&gt;&lt;FONT face=Arial&gt;&lt;A href="http://www.codeplex.com/Wiki/View.aspx?ProjectName=VFPX"&gt;VFPX&lt;/A&gt; managers (community famous members: Craig Boyd, Doug Hennig&amp;nbsp;and Rick Schummer)&amp;nbsp;for your simple usage and polishedness.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial&gt;&lt;FONT size=2&gt;Now, &lt;/FONT&gt;&lt;A href="http://www.codeplex.com/Project/NewsFeeds.aspx?ProjectName=VFPX"&gt;&lt;FONT size=2&gt;Outlook2003Bar&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2&gt; control is&amp;nbsp;part&amp;nbsp;of &lt;/FONT&gt;&lt;A href="http://www.codeplex.com/Wiki/View.aspx?ProjectName=VFPX"&gt;&lt;FONT size=2&gt;VFPX&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2&gt; and&amp;nbsp;every member&amp;nbsp;can suggest, test,&amp;nbsp;report bugs and participate in development!&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;Recommendations:&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;EM&gt;Thanks for doing such a fine job on the Outlook 2003-styled Listbar.&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;EM&gt;It's very polished and it is simple to use (given your use of pageframe and pages with just a few simple properties to set).&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;EM&gt;I look forward to seeing more of your work.&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;EM&gt;I am quite impressed.&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color=#0000ff&gt;&lt;FONT color=#000000&gt;&lt;FONT face=Arial&gt;&lt;FONT size=2&gt;&lt;STRONG&gt;Craig Boyd&lt;/STRONG&gt; (SweetPotato Software CEO, Inc. and VFPX manager)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial&gt;&lt;FONT size=2&gt;&lt;EM&gt;We think you and your team will do some really great things with this project, and provide a great deal of value for the Visual FoxPro Community. &lt;/EM&gt;&lt;BR&gt;&lt;STRONG&gt;Rick Schummer&lt;/STRONG&gt; (VFPX manager)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial&gt;&lt;FONT size=2&gt;&lt;EM&gt;O projeto "Outlook2003Bar" do nosso colega Emerson Santon Reed acaba de ser aprovado e incluído ao VFP-X.&lt;BR&gt;Isso confirma a excelente idéia e ótima qualidade na execução do projeto que o Emerson lidera, ratificando todos os elogios que a classe tem recebido.&lt;BR&gt;Estando no VFP-X, garante visibilidade ao projeto, abrindo-o para receber a contribuição da comunidade.&lt;BR&gt;Parabéns Emerson !&lt;BR&gt;&lt;/EM&gt;&lt;STRONG&gt;César Chalom&lt;/STRONG&gt; (Member of VFPX team and FoxBrasil user group)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;Links:&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;A href="http://www.codeplex.com/Wiki/View.aspx?ProjectName=VFPX"&gt;&lt;FONT face=Arial size=2&gt;VFPX&lt;/FONT&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial&gt;&lt;FONT size=2&gt;A Visual FoxPro Community effort to create open source add-ons for Visual FoxPro 9.0. The code, classes, and libraries made available here will complement Microsoft's continuing efforts to improve and extend Visual FoxPro with the code named Sedna project which is outlined at &lt;/FONT&gt;&lt;A href="http://msdn.com/vfoxpro/roadmap"&gt;&lt;FONT size=2&gt;http://msdn.com/vfoxpro/roadmap&lt;/FONT&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;Foxite&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;Home of the Visual FoxPro Experts&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;A href="http://www.universalthread.com/"&gt;Universal Thread&lt;/A&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;Worldwide Developers Community&lt;/FONT&gt;&lt;/DIV&gt;&lt;img src="http://weblogs.foxite.com/aggbug.aspx?PostID=2599" width="1" height="1"&gt;</content><author><name>emersonreed</name><uri>http://weblogs.foxite.com/members/emersonreed.aspx</uri></author></entry><entry><title>A sample on how to add features to Report Listener</title><link rel="alternate" type="text/html" href="http://weblogs.foxite.com/emersonreed/archive/2006/09/13/A_sample_on_how_to_add_features_to_Report_Listener.aspx" /><id>http://weblogs.foxite.com/emersonreed/archive/2006/09/13/A_sample_on_how_to_add_features_to_Report_Listener.aspx</id><published>2006-09-13T19:23:00Z</published><updated>2006-09-13T19:23:00Z</updated><content type="html">&lt;P&gt;VFP 9 introduces&amp;nbsp;a new reporting system based on listeners (object-assisted output).&lt;/P&gt;
&lt;P&gt;Listeners can be customized&amp;nbsp;in a variety of ways and there's a lot of amazing things you can do with it.&lt;/P&gt;
&lt;P&gt;If you combine the power of GDI+ with customized listeners you can highly increase the reporting capabilities.&lt;/P&gt;
&lt;P&gt;I'll show how you can customize the Report Listener to create a watermark in all report pages and how you can customize Report Preview to change the language of report preview toolbar buttons and display the preview window maximized.&lt;/P&gt;&lt;PRE&gt;&lt;FONT color=blue&gt;Set&lt;/FONT&gt; &lt;FONT color=blue&gt;Classlib&lt;/FONT&gt; &lt;FONT color=blue&gt;To&lt;/FONT&gt; (&lt;FONT color=blue&gt;Addbs&lt;/FONT&gt;(&lt;FONT color=blue&gt;Home&lt;/FONT&gt;()) + &lt;FONT color=black&gt;"FFC\_GDIPlus.vcx"&lt;/FONT&gt;) &lt;FONT color=blue&gt;Additive&lt;/FONT&gt;

&lt;FONT color=green&gt;* Create a Report Listener object&lt;/FONT&gt;
&lt;FONT color=blue&gt;Local&lt;/FONT&gt; loReportListener
loReportListener = &lt;FONT color=blue&gt;Newobject&lt;/FONT&gt;(&lt;FONT color=black&gt;"MyReportListener"&lt;/FONT&gt;)
&lt;FONT color=blue&gt;With&lt;/FONT&gt; loReportListener
   .ListenerType = 1 &lt;FONT color=green&gt;&amp;amp;&amp;amp; Preview&lt;/FONT&gt;
&lt;FONT color=green&gt;   * Set the Watermark properties: text, font and style&lt;/FONT&gt;
   .cWatermark = &lt;FONT color=black&gt;"Watermark demo"&lt;/FONT&gt;
   .cFontName = &lt;FONT color=black&gt;"Verdana"&lt;/FONT&gt;
   .nFontStyle = 1 &lt;FONT color=green&gt;&amp;amp;&amp;amp; Bold&lt;/FONT&gt;
&lt;FONT color=blue&gt;Endwith&lt;/FONT&gt;

&lt;FONT color=green&gt;* Create a cursor that will be the report data source and insert some records&lt;/FONT&gt;
&lt;FONT color=blue&gt;Create&lt;/FONT&gt; &lt;FONT color=blue&gt;Cursor&lt;/FONT&gt; curTest (field1 c(100))
&lt;FONT color=blue&gt;Local&lt;/FONT&gt; i
&lt;FONT color=blue&gt;For&lt;/FONT&gt; i=1 &lt;FONT color=blue&gt;To&lt;/FONT&gt; 640
   &lt;FONT color=blue&gt;Insert&lt;/FONT&gt; &lt;FONT color=blue&gt;Into&lt;/FONT&gt; curTest &lt;FONT color=blue&gt;Values&lt;/FONT&gt; (&lt;FONT color=blue&gt;Str&lt;/FONT&gt;(i)+&lt;FONT color=black&gt;" test, test, test, test, test, test, test, test, test, test, test, test, test"&lt;/FONT&gt;)
&lt;FONT color=blue&gt;Endfor&lt;/FONT&gt;
&lt;FONT color=blue&gt;Select&lt;/FONT&gt; curTest
&lt;FONT color=blue&gt;Go&lt;/FONT&gt; &lt;FONT color=blue&gt;Top&lt;/FONT&gt;

&lt;FONT color=green&gt;* Create a report on the fly&lt;/FONT&gt;
&lt;FONT color=blue&gt;Create&lt;/FONT&gt; &lt;FONT color=blue&gt;Report&lt;/FONT&gt; Test &lt;FONT color=blue&gt;From&lt;/FONT&gt; curTest

&lt;FONT color=green&gt;* Run the report using the new report engine (object-assisted output)&lt;/FONT&gt;
&lt;FONT color=blue&gt;Report&lt;/FONT&gt; &lt;FONT color=blue&gt;Form&lt;/FONT&gt; Test &lt;FONT color=blue&gt;Object&lt;/FONT&gt; loReportListener

&lt;FONT color=green&gt;* Close cursor and delete the report file&lt;/FONT&gt;
&lt;FONT color=blue&gt;Use&lt;/FONT&gt; &lt;FONT color=blue&gt;In&lt;/FONT&gt; curTest
&lt;FONT color=blue&gt;Delete&lt;/FONT&gt; &lt;FONT color=blue&gt;File&lt;/FONT&gt; Test.fr?
&lt;FONT color=blue&gt;Return&lt;/FONT&gt;

&lt;FONT color=green&gt;* Create a class derived from _ReportListener base class and add some features&lt;/FONT&gt;
&lt;FONT color=blue&gt;Define&lt;/FONT&gt; &lt;FONT color=blue&gt;Class&lt;/FONT&gt; MyReportListener &lt;FONT color=blue&gt;As&lt;/FONT&gt; _ReportListener &lt;FONT color=blue&gt;Of&lt;/FONT&gt; &lt;FONT color=blue&gt;Addbs&lt;/FONT&gt;(&lt;FONT color=blue&gt;Home&lt;/FONT&gt;()) + &lt;FONT color=black&gt;"FFC\_ReportListener.VCX"&lt;/FONT&gt;
&lt;FONT color=green&gt;   * Internal to the class&lt;/FONT&gt;
   &lt;FONT color=blue&gt;Hidden&lt;/FONT&gt; nAngle, oBrush, oColor, oFont, oGDIGraphics, oRect, oStringFormat
   &lt;FONT color=blue&gt;Hidden&lt;/FONT&gt; ResourceStatus
   nAngle = 0
   oBrush = &lt;FONT color=blue&gt;Null&lt;/FONT&gt;
   oColor = &lt;FONT color=blue&gt;Null&lt;/FONT&gt;
   oFont = &lt;FONT color=blue&gt;Null&lt;/FONT&gt;
   oGDIGraphics = &lt;FONT color=blue&gt;Null&lt;/FONT&gt;
   oRect = &lt;FONT color=blue&gt;Null&lt;/FONT&gt;
   oStringFormat = &lt;FONT color=blue&gt;Null&lt;/FONT&gt;
   cResourceStatus = &lt;FONT color=blue&gt;Set&lt;/FONT&gt;(&lt;FONT color=black&gt;"Resource"&lt;/FONT&gt;)
&lt;FONT color=green&gt;   * Public&lt;/FONT&gt;
   cWatermark = &lt;FONT color=black&gt;""&lt;/FONT&gt;
   cFontName = &lt;FONT color=black&gt;""&lt;/FONT&gt;
   nFontStyle = 0
&lt;FONT color=green&gt;   *&lt;/FONT&gt;
   &lt;FONT color=blue&gt;Procedure&lt;/FONT&gt; &lt;FONT color=blue&gt;Init&lt;/FONT&gt;
      &lt;FONT color=blue&gt;Lparameters&lt;/FONT&gt; cWatermark, cFontName, cFontStyle
      &lt;FONT color=blue&gt;Set&lt;/FONT&gt; &lt;FONT color=blue&gt;Resource&lt;/FONT&gt; &lt;FONT color=blue&gt;Off&lt;/FONT&gt;
      &lt;FONT color=blue&gt;With&lt;/FONT&gt; &lt;FONT color=blue&gt;This&lt;/FONT&gt;
         .cWatermark = &lt;FONT color=blue&gt;Evl&lt;/FONT&gt;(cWatermark,&lt;FONT color=black&gt;""&lt;/FONT&gt;)
         .cFontName = &lt;FONT color=blue&gt;Evl&lt;/FONT&gt;(cFontName,&lt;FONT color=black&gt;""&lt;/FONT&gt;)
         .nFontStyle = &lt;FONT color=blue&gt;Evl&lt;/FONT&gt;(cFontStyle,0)
      &lt;FONT color=blue&gt;Endwith&lt;/FONT&gt;
      &lt;FONT color=blue&gt;DoDefault&lt;/FONT&gt;()
   &lt;FONT color=blue&gt;Endproc&lt;/FONT&gt;
&lt;FONT color=green&gt;   *&lt;/FONT&gt;
   &lt;FONT color=blue&gt;Procedure&lt;/FONT&gt; &lt;FONT color=blue&gt;Destroy&lt;/FONT&gt;
      &lt;FONT color=blue&gt;Local&lt;/FONT&gt; lcResourceStatus
      lcResourceStatus = &lt;FONT color=blue&gt;This&lt;/FONT&gt;.cResourceStatus
      &lt;FONT color=blue&gt;Set&lt;/FONT&gt; &lt;FONT color=blue&gt;Resource&lt;/FONT&gt; &amp;amp;lcResourceStatus
      &lt;FONT color=blue&gt;DoDefault&lt;/FONT&gt;()
   &lt;FONT color=blue&gt;Endproc&lt;/FONT&gt;
&lt;FONT color=green&gt;   *&lt;/FONT&gt;
   &lt;FONT color=blue&gt;Procedure&lt;/FONT&gt; LoadReport
      &lt;FONT color=blue&gt;DoDefault&lt;/FONT&gt;()
      &lt;FONT color=blue&gt;With&lt;/FONT&gt; &lt;FONT color=blue&gt;This&lt;/FONT&gt;
         &lt;FONT color=blue&gt;If&lt;/FONT&gt; .ListenerType==1 &lt;FONT color=blue&gt;And&lt;/FONT&gt; Not &lt;FONT color=blue&gt;Vartype&lt;/FONT&gt;(.PreviewContainer)==&lt;FONT color=black&gt;"O"&lt;/FONT&gt;
            .ExtendPreviewContainer()
         &lt;FONT color=blue&gt;Endif&lt;/FONT&gt;
      &lt;FONT color=blue&gt;Endwith&lt;/FONT&gt;
   &lt;FONT color=blue&gt;Endproc&lt;/FONT&gt;
&lt;FONT color=green&gt;   *&lt;/FONT&gt;
   &lt;FONT color=blue&gt;Procedure&lt;/FONT&gt; BeforeReport
      &lt;FONT color=blue&gt;DoDefault&lt;/FONT&gt;()
      &lt;FONT color=blue&gt;With&lt;/FONT&gt; &lt;FONT color=blue&gt;This&lt;/FONT&gt;
         &lt;FONT color=blue&gt;If&lt;/FONT&gt; Not &lt;FONT color=blue&gt;Empty&lt;/FONT&gt;(.cWatermark)
            .oGDIGraphics = &lt;FONT color=blue&gt;Createobject&lt;/FONT&gt;(&lt;FONT color=black&gt;'GPGraphics'&lt;/FONT&gt;)
            .SetWatermarkFontSize()
         &lt;FONT color=blue&gt;Endif&lt;/FONT&gt;
      &lt;FONT color=blue&gt;Endwith&lt;/FONT&gt;
   &lt;FONT color=blue&gt;Endproc&lt;/FONT&gt;
&lt;FONT color=green&gt;   *&lt;/FONT&gt;
   &lt;FONT color=blue&gt;Procedure&lt;/FONT&gt; AfterBand(nBandObjCode, nFRXRecNo)
      &lt;FONT color=blue&gt;If&lt;/FONT&gt; nBandObjCode==7 &lt;FONT color=green&gt;&amp;amp;&amp;amp; Page footer&lt;/FONT&gt;
         &lt;FONT color=blue&gt;With&lt;/FONT&gt; &lt;FONT color=blue&gt;This&lt;/FONT&gt;
            &lt;FONT color=blue&gt;If&lt;/FONT&gt; Not &lt;FONT color=blue&gt;Empty&lt;/FONT&gt;(.cWatermark)
               .AddWatermark()
            &lt;FONT color=blue&gt;Endif&lt;/FONT&gt;
         &lt;FONT color=blue&gt;Endwith&lt;/FONT&gt;
      &lt;FONT color=blue&gt;Endif&lt;/FONT&gt;
      &lt;FONT color=blue&gt;DoDefault&lt;/FONT&gt;(nBandObjCode, nFRXRecNo)
   &lt;FONT color=blue&gt;Endproc&lt;/FONT&gt;
&lt;FONT color=green&gt;   *&lt;/FONT&gt;
   &lt;FONT color=blue&gt;Function&lt;/FONT&gt; SetWatermarkFontSize
      &lt;FONT color=blue&gt;With&lt;/FONT&gt; &lt;FONT color=blue&gt;This&lt;/FONT&gt;
         .SetoGDIGraphicsHandle()

&lt;FONT color=green&gt;         * Create a semi transparent Grey Color&lt;/FONT&gt;
         .oColor = &lt;FONT color=blue&gt;Createobject&lt;/FONT&gt;(&lt;FONT color=black&gt;'gpColor'&lt;/FONT&gt;,128,128,128,127)

&lt;FONT color=green&gt;         * Create a SolidBrush with Grey Color&lt;/FONT&gt;
         .oBrush = &lt;FONT color=blue&gt;Createobject&lt;/FONT&gt;(&lt;FONT color=black&gt;"gpSolidBrush"&lt;/FONT&gt;, .oColor)

&lt;FONT color=green&gt;         * Create a StringFormat&lt;/FONT&gt;
         #&lt;FONT color=blue&gt;Define&lt;/FONT&gt; StringAlignmentNear 0
         #&lt;FONT color=blue&gt;Define&lt;/FONT&gt; StringAlignmentCenter 1
         #&lt;FONT color=blue&gt;Define&lt;/FONT&gt; StringAlignmentFar  2
         .oStringFormat = &lt;FONT color=blue&gt;Createobject&lt;/FONT&gt;(&lt;FONT color=black&gt;'gpStringFormat'&lt;/FONT&gt;)
         &lt;FONT color=blue&gt;With&lt;/FONT&gt; .oStringFormat
            .&lt;FONT color=blue&gt;Create&lt;/FONT&gt;()
            .&lt;FONT color=blue&gt;Alignment&lt;/FONT&gt; = StringAlignmentCenter
            .LineAlignment = StringAlignmentCenter
         &lt;FONT color=blue&gt;Endwith&lt;/FONT&gt;

&lt;FONT color=green&gt;         * Create a Font object&lt;/FONT&gt;
         &lt;FONT color=blue&gt;Local&lt;/FONT&gt; loFont
         loFont = &lt;FONT color=blue&gt;Createobject&lt;/FONT&gt;(&lt;FONT color=black&gt;"GpFont"&lt;/FONT&gt;)

         &lt;FONT color=blue&gt;Local&lt;/FONT&gt; lnFactor, lnMaxWidth
         lnFactor = 0.80
         lnMaxWidth = (&lt;FONT color=blue&gt;Sqrt&lt;/FONT&gt;((.SharedPageHeight ^ 2) + (.SharedPageWidth ^ 2))) * lnFactor

&lt;FONT color=green&gt;         * To bypass GDI+ MeasureString bug to obtain the correct size&lt;/FONT&gt;
         &lt;FONT color=blue&gt;Local&lt;/FONT&gt; loStringFormat &lt;FONT color=blue&gt;As&lt;/FONT&gt; &lt;FONT color=black&gt;'GpStringFormat'&lt;/FONT&gt; &lt;FONT color=blue&gt;Of&lt;/FONT&gt; &lt;FONT color=blue&gt;Home&lt;/FONT&gt;() + &lt;FONT color=black&gt;'FFC\_gdiplus.vcx'&lt;/FONT&gt;
         loStringFormat = &lt;FONT color=blue&gt;Newobject&lt;/FONT&gt;(&lt;FONT color=black&gt;'GpStringFormat'&lt;/FONT&gt;,&lt;FONT color=blue&gt;Home&lt;/FONT&gt;() + &lt;FONT color=black&gt;'FFC\_gdiplus.vcx'&lt;/FONT&gt;)
         loStringFormat.&lt;FONT color=blue&gt;Create&lt;/FONT&gt;()
         loStringFormat.GetGenericTypographic()

         &lt;FONT color=blue&gt;Local&lt;/FONT&gt; loSize, lnSize, lnCharsFitted, lnLinesFilled, lnPerc
         lnSize = 1500

         loFont.&lt;FONT color=blue&gt;Create&lt;/FONT&gt;(.cFontName,lnSize,.nFontStyle,2)
         lnCharsFitted = 0
         lnLinesFilled = 0
         loSize = .oGDIGraphics.MeasureStringA(.cWatermark,loFont, ,;
            loStringFormat, @lnCharsFitted, @lnLinesFilled)

         &lt;FONT color=blue&gt;If&lt;/FONT&gt; &lt;FONT color=blue&gt;Vartype&lt;/FONT&gt;(loSize)==&lt;FONT color=black&gt;"O"&lt;/FONT&gt;
            &lt;FONT color=blue&gt;If&lt;/FONT&gt; loSize.W &amp;gt; lnMaxWidth
               lnPerc = loSize.W / lnMaxWidth
               lnSize = &lt;FONT color=blue&gt;Int&lt;/FONT&gt;(lnSize / lnPerc)
            &lt;FONT color=blue&gt;Endif&lt;/FONT&gt;
         &lt;FONT color=blue&gt;Endif&lt;/FONT&gt;

         loFont.&lt;FONT color=blue&gt;Create&lt;/FONT&gt;(.cFontName,lnSize,.nFontStyle,2)
         .oFont = loFont

&lt;FONT color=green&gt;         * Calculate the rotation angle&lt;/FONT&gt;
         .nAngle = &lt;FONT color=blue&gt;Rtod&lt;/FONT&gt;(&lt;FONT color=blue&gt;Atan&lt;/FONT&gt;(.SharedPageHeight / .SharedPageWidth ))

&lt;FONT color=green&gt;         * Create a rectangle with special dimensions&lt;/FONT&gt;
         .oRect = &lt;FONT color=blue&gt;Createobject&lt;/FONT&gt;(&lt;FONT color=black&gt;"gpRectangle"&lt;/FONT&gt;, ;
            -.SharedPageWidth/2, -.SharedPageHeight/2, ;
            .SharedPageWidth*2, .SharedPageHeight*2)
      &lt;FONT color=blue&gt;Endwith&lt;/FONT&gt;
   &lt;FONT color=blue&gt;Endfunc&lt;/FONT&gt;
&lt;FONT color=green&gt;   *&lt;/FONT&gt;
   &lt;FONT color=blue&gt;Function&lt;/FONT&gt; AddWatermark
      &lt;FONT color=blue&gt;With&lt;/FONT&gt; &lt;FONT color=blue&gt;This&lt;/FONT&gt;
         .SetoGDIGraphicsHandle()

&lt;FONT color=green&gt;         * Prepare transformation&lt;/FONT&gt;
         .oGDIGraphics.TranslateTransform(.SharedPageWidth/2, ;
            .SharedPageHeight/2)
         .oGDIGraphics.RotateTransform(-.nAngle)
         .oGDIGraphics.TranslateTransform(-.SharedPageWidth/2, ;
            -.SharedPageHeight/2)

&lt;FONT color=green&gt;         * Draw a string&lt;/FONT&gt;
         .oGDIGraphics.DrawStringA(.cWatermark, .oFont, .oRect, .oStringFormat, .oBrush)

&lt;FONT color=green&gt;         * Reset Rotation&lt;/FONT&gt;
         .oGDIGraphics.ResetTransform()
      &lt;FONT color=blue&gt;Endwith&lt;/FONT&gt;
   &lt;FONT color=blue&gt;Endfunc&lt;/FONT&gt;
&lt;FONT color=green&gt;   *&lt;/FONT&gt;
   &lt;FONT color=blue&gt;Function&lt;/FONT&gt; SetoGDIGraphicsHandle
      &lt;FONT color=blue&gt;With&lt;/FONT&gt; &lt;FONT color=blue&gt;This&lt;/FONT&gt;
         &lt;FONT color=blue&gt;If&lt;/FONT&gt; Not .IsSuccessor
            .SharedGDIPlusGraphics = .GDIPlusGraphics
         &lt;FONT color=blue&gt;Endif&lt;/FONT&gt;
         .oGDIGraphics.SetHandle(.SharedGDIPlusGraphics)
         .oGDIGraphics.TextRenderingHint = 3 &lt;FONT color=green&gt;&amp;amp;&amp;amp; AntiAlias&lt;/FONT&gt;
      &lt;FONT color=blue&gt;Endwith&lt;/FONT&gt;
   &lt;FONT color=blue&gt;Endfunc&lt;/FONT&gt;
&lt;FONT color=green&gt;   *&lt;/FONT&gt;
   &lt;FONT color=blue&gt;Function&lt;/FONT&gt; ExtendPreviewContainer
      &lt;FONT color=blue&gt;Local&lt;/FONT&gt; loPreviewContainer
      loPreviewContainer = &lt;FONT color=blue&gt;Null&lt;/FONT&gt;
      &lt;FONT color=blue&gt;Do&lt;/FONT&gt; (_ReportPreview) &lt;FONT color=blue&gt;With&lt;/FONT&gt; loPreviewContainer
      loPreviewContainer.SetExtensionHandler(&lt;FONT color=blue&gt;Newobject&lt;/FONT&gt;(&lt;FONT color=black&gt;"MyExtensionHandler"&lt;/FONT&gt;))
      &lt;FONT color=blue&gt;This&lt;/FONT&gt;.PreviewContainer = loPreviewContainer
   &lt;FONT color=blue&gt;Endfunc&lt;/FONT&gt;
&lt;FONT color=blue&gt;Enddefine&lt;/FONT&gt;

&lt;FONT color=green&gt;* Create a class that will extend Report Preview&lt;/FONT&gt;
&lt;FONT color=blue&gt;Define&lt;/FONT&gt; &lt;FONT color=blue&gt;Class&lt;/FONT&gt; MyExtensionHandler &lt;FONT color=blue&gt;As&lt;/FONT&gt; &lt;FONT color=blue&gt;Custom&lt;/FONT&gt;
&lt;FONT color=green&gt;   *&lt;/FONT&gt;
   &lt;FONT color=blue&gt;Procedure&lt;/FONT&gt; &lt;FONT color=blue&gt;Show&lt;/FONT&gt;(iStyle)
      &lt;FONT color=blue&gt;With&lt;/FONT&gt; &lt;FONT color=blue&gt;This&lt;/FONT&gt;.PreviewForm
         &lt;FONT color=blue&gt;With&lt;/FONT&gt; .&lt;FONT color=blue&gt;Toolbar&lt;/FONT&gt;
&lt;FONT color=green&gt;            * Translate toolbar buttons ToolTips to Brazilian Portugese language&lt;/FONT&gt;
            .cboZoom.&lt;FONT color=blue&gt;ToolTipText&lt;/FONT&gt; = &lt;FONT color=black&gt;"Zoom"&lt;/FONT&gt;
            .cmdClose.&lt;FONT color=blue&gt;ToolTipText&lt;/FONT&gt; = &lt;FONT color=black&gt;"Fechar a visualização"&lt;/FONT&gt;
            .cmdGoToPage.&lt;FONT color=blue&gt;ToolTipText&lt;/FONT&gt; = &lt;FONT color=black&gt;"Ir para a página"&lt;/FONT&gt;
            .cmdPrint.&lt;FONT color=blue&gt;ToolTipText&lt;/FONT&gt; = &lt;FONT color=black&gt;"Imprimir"&lt;/FONT&gt;
            &lt;FONT color=blue&gt;With&lt;/FONT&gt; .cntNext
               .cmdBottom.&lt;FONT color=blue&gt;ToolTipText&lt;/FONT&gt; = &lt;FONT color=black&gt;"Última página"&lt;/FONT&gt;
               .cmdForward.&lt;FONT color=blue&gt;ToolTipText&lt;/FONT&gt; = &lt;FONT color=black&gt;"Próxima página"&lt;/FONT&gt;
            &lt;FONT color=blue&gt;Endwith&lt;/FONT&gt;
            &lt;FONT color=blue&gt;With&lt;/FONT&gt; .cntPrev
               .cmdBack.&lt;FONT color=blue&gt;ToolTipText&lt;/FONT&gt; = &lt;FONT color=black&gt;"Página anterior"&lt;/FONT&gt;
               .cmdTop.&lt;FONT color=blue&gt;ToolTipText&lt;/FONT&gt; = &lt;FONT color=black&gt;"Primeira página"&lt;/FONT&gt;
            &lt;FONT color=blue&gt;Endwith&lt;/FONT&gt;
            &lt;FONT color=blue&gt;With&lt;/FONT&gt; .opgPageCount
               .opt1.&lt;FONT color=blue&gt;ToolTipText&lt;/FONT&gt; = &lt;FONT color=black&gt;"Uma página"&lt;/FONT&gt;
               .opt2.&lt;FONT color=blue&gt;ToolTipText&lt;/FONT&gt; = &lt;FONT color=black&gt;"Duas páginas"&lt;/FONT&gt;
               .opt3.&lt;FONT color=blue&gt;ToolTipText&lt;/FONT&gt; = &lt;FONT color=black&gt;"Quatro páginas"&lt;/FONT&gt;
            &lt;FONT color=blue&gt;Endwith&lt;/FONT&gt;
&lt;FONT color=green&gt;            *&lt;/FONT&gt;
         &lt;FONT color=blue&gt;Endwith&lt;/FONT&gt;
         .&lt;FONT color=blue&gt;WindowState&lt;/FONT&gt; = 2 &lt;FONT color=green&gt;&amp;amp;&amp;amp; Maximize report preview&lt;/FONT&gt;
      &lt;FONT color=blue&gt;Endwith&lt;/FONT&gt;
      &lt;FONT color=blue&gt;DoDefault&lt;/FONT&gt;(iStyle)
   &lt;FONT color=blue&gt;Endproc&lt;/FONT&gt;
&lt;FONT color=green&gt;   *&lt;/FONT&gt;
&lt;FONT color=blue&gt;Enddefine&lt;/FONT&gt;
&lt;/PRE&gt;
&lt;P&gt;To know more about the new VFP 9 reporting system and GDI+, I recomend you to:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;read VFP 9 help topics: &lt;EM&gt;Understanding Visual FoxPro Object-Assisted Reporting&lt;/EM&gt; and &lt;EM&gt;Using GDI+ in Reports&lt;/EM&gt;; 
&lt;LI&gt;take a look at &lt;A href="http://www.codeplex.com/Wiki/View.aspx?ProjectName=VFPX"&gt;VFPX&lt;/A&gt;&amp;nbsp;website and search for GDIPlusX class that extends GDI+ capabilities; 
&lt;LI&gt;visit &lt;A href="/cesarchalom"&gt;César Chalom&lt;/A&gt;'s blog. He is&amp;nbsp;involved in GDIPlusX project from&amp;nbsp;&lt;A href="http://www.codeplex.com/Wiki/View.aspx?ProjectName=VFPX"&gt;VFPX&lt;/A&gt; team. His blog&amp;nbsp;has great GDI+ samples.&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;One more time, thanks to &lt;A href="/cesarchalom"&gt;César Chalom&lt;/A&gt;&amp;nbsp;for develop the code to do the watermark. Congratulations for&amp;nbsp;your great job!&lt;/P&gt;&lt;img src="http://weblogs.foxite.com/aggbug.aspx?PostID=2463" width="1" height="1"&gt;</content><author><name>emersonreed</name><uri>http://weblogs.foxite.com/members/emersonreed.aspx</uri></author></entry><entry><title>Outlook2003Bar New Version 1.0.0</title><link rel="alternate" type="text/html" href="http://weblogs.foxite.com/emersonreed/archive/2006/08/21/Outlook2003Bar100.aspx" /><link rel="enclosure" type="application/x-zip-compressed" length="176524" href="http://weblogs.foxite.com/emersonreed/attachment/2291.ashx" /><id>http://weblogs.foxite.com/emersonreed/archive/2006/08/21/Outlook2003Bar100.aspx</id><published>2006-08-21T16:11:00Z</published><updated>2006-08-21T16:11:00Z</updated><content type="html">&lt;P&gt;&lt;FONT face=Verdana size=2&gt;In the last days, I worked on a new&amp;nbsp;version of the Outlook2003Bar control, making some adjusts and &lt;FONT color=#0000ff&gt;&lt;STRONG&gt;adding new features&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT color=#000000&gt;.&lt;BR&gt;&lt;BR&gt;The look has minor changes...&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A HREF="/photos/emersonreed/images/original/Outlook2003BarV100.aspx" target=_blank&gt;&lt;IMG src="/photos/emersonreed/images/original/Outlook2003BarV100.aspx" border=0&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&lt;A HREF="/photos/emersonreed/images/original/Outlook2003Bar100.aspx" target=_blank&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT face=Verdana color=#0000ff size=2&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&lt;A HREF="/photos/emersonreed/images/original/Outlook2003BarBeta.aspx" target=_blank&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;&lt;FONT color=#0000ff&gt;New features:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;&lt;FONT color=#0000ff&gt;1)&lt;/FONT&gt;&lt;/STRONG&gt; Now you don't need&amp;nbsp;to add the buttons manually!&amp;nbsp;The only thing you need to do is add the pages in the Panes pageframe control inside Outlook2003Bar and set: Caption, Picture16 and Picture24 page's properties and the control will automatically create the buttons at runtime.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;&lt;FONT color=#0000ff&gt;2)&lt;/FONT&gt;&lt;/STRONG&gt; Added predefined color schemes that follows Blue, Silver and Olive&amp;nbsp;Windows XP Themes. If you change the active Windows XP theme, the control color scheme is changed too! Also, you can manually change the control's colors.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;&lt;FONT color=#0000ff&gt;3)&lt;/FONT&gt;&lt;/STRONG&gt; Outlook2003Bar help file is&amp;nbsp;avaiable in Vcx directory.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Note that the size of the image used in PanelButtons changed from 32x32 to 24x24!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;After download Outlook2003Bar attached, open Sample.pjx, compile them and run Sample.exe.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Please, feel free to make comments, send suggestions or request bug fixes.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;VFP rocks!&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://weblogs.foxite.com/aggbug.aspx?PostID=2291" width="1" height="1"&gt;</content><author><name>emersonreed</name><uri>http://weblogs.foxite.com/members/emersonreed.aspx</uri></author></entry><entry><title>Outlook2003Bar control</title><link rel="alternate" type="text/html" href="http://weblogs.foxite.com/emersonreed/archive/2006/07/25/Outlook2003Bar_control.aspx" /><link rel="enclosure" type="application/x-zip-compressed" length="82549" href="http://weblogs.foxite.com/emersonreed/attachment/2069.ashx" /><id>http://weblogs.foxite.com/emersonreed/archive/2006/07/25/Outlook2003Bar_control.aspx</id><published>2006-07-25T16:04:00Z</published><updated>2006-07-25T16:04:00Z</updated><content type="html">&lt;P&gt;Here is the beta version of my&amp;nbsp;Outlook2003Bar control (that&amp;nbsp;has the same look and features found in Microsoft Outlook 2003 left bar), entirely&amp;nbsp;written in VFP 9.&lt;/P&gt;
&lt;P&gt;&lt;A href="/photos/emersonreed/images/original/Outlook2003BarBeta.aspx" target=_blank&gt;&lt;IMG src="/photos/emersonreed/images/original/Outlook2003BarBeta.aspx" border=0&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="/photos/emersonreed/images/original/Outlook2003Bar.aspx" target=_blank&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="/photos/emersonreed/images/original/Outlook2003Bar100.aspx" target=_blank&gt;&lt;/A&gt;&lt;A href="/photos/emersonreed/images/original/Outlook2003Bar100.aspx" target=_blank&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you have any suggestion or wants to report a bug, contact me.&lt;/P&gt;
&lt;P&gt;As soon as I can, I'll post a help and more details on how to use Outlook2003Bar.&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;to &lt;A href="/cesarchalom"&gt;Cesar Chalom&lt;/A&gt; for your help with gradient background images&amp;nbsp;and &lt;A href="http://www.siteintranet.qc.ca/"&gt;Gérald Santerre&lt;/A&gt; (developer of &lt;A href="http://siteintranet.qc.ca/vfp/splitter.zip"&gt;Active-X friendly Splitter control&lt;/A&gt; used in this project).&lt;/P&gt;&lt;img src="http://weblogs.foxite.com/aggbug.aspx?PostID=2069" width="1" height="1"&gt;</content><author><name>emersonreed</name><uri>http://weblogs.foxite.com/members/emersonreed.aspx</uri></author></entry><entry><title>Log code coverage</title><link rel="alternate" type="text/html" href="http://weblogs.foxite.com/emersonreed/archive/2006/01/23/1103.aspx" /><id>http://weblogs.foxite.com/emersonreed/archive/2006/01/23/1103.aspx</id><published>2006-01-23T19:18:00Z</published><updated>2006-01-23T19:18:00Z</updated><content type="html">&lt;P&gt;&lt;FONT face=Arial size=2&gt;Do you&amp;nbsp;want to refine your code for performance and ensure that you've adequately tested the code?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;The easiest way to track wich lines of code have been executed and how long it took to execute them is logging code coverage information.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;This information can help you identify areas of code that aren't being executed and therefore aren't being tested, as well as areas of the code that you might want to fine tune for performance.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;You can&amp;nbsp;toggle coverage logging on and off programmatically (at design time and runtime) by using the &lt;FONT face="Courier New" color=#0000ff&gt;SET COVERAGE TO&lt;/FONT&gt; command.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial&gt;&lt;FONT size=2&gt;You could, for example, include the following command in your application just before a piece of code you want to investigate:&lt;BR&gt;&lt;FONT face="Courier New"&gt;&lt;FONT color=#0000ff&gt;SET COVERAGE TO&lt;/FONT&gt; mylog.log&lt;/FONT&gt;&lt;BR&gt;After the section of code you want to log coverage for, you could include the following command to set code coverage off:&lt;BR&gt;&lt;FONT face="Courier New" color=#0000ff&gt;SET COVERAGE TO&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;When you've specified a file for the coverage information, for every line of code that is executed, the following information is written to the log file:&lt;BR&gt;- How long in seconds the line took to execute.&lt;BR&gt;- The class, if any, that the code belongs to.&lt;BR&gt;- The method or procedure the line of code is in.&lt;BR&gt;- The number of the line of code.&lt;BR&gt;- The file that the code is in.&lt;BR&gt;- Call stack level in which the line of code executes.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial&gt;&lt;FONT size=2&gt;For more information, see&amp;nbsp;help topic: &lt;EM&gt;"&lt;/EM&gt;&lt;SPAN id=nsrTitle&gt;&lt;EM&gt;How to: Log Code Coverage"&lt;/EM&gt;.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://weblogs.foxite.com/aggbug.aspx?PostID=1103" width="1" height="1"&gt;</content><author><name>emersonreed</name><uri>http://weblogs.foxite.com/members/emersonreed.aspx</uri></author></entry></feed>