<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Fix your forms to paint borders correctly under Vista Aero</title><link>http://blogs.msdn.com/calvin_hsia/archive/2007/04/27/fix-your-forms-to-paint-borders-correctly-under-vista-aero.aspx</link><description>Apparently, the borders of some forms don’t get painted correctly on Windows Vista. When executing a Fox Form, Fox asks Windows to create a window, then sets the BorderStyle of the window. Apparently, under Vista Aero (except as Administrator), the BorderStyle</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Fix your forms to paint borders correctly under Vista Aero</title><link>http://blogs.msdn.com/calvin_hsia/archive/2007/04/27/fix-your-forms-to-paint-borders-correctly-under-vista-aero.aspx#2306747</link><pubDate>Sat, 28 Apr 2007 04:54:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2306747</guid><dc:creator>Calvin_Hsia</dc:creator><description>&lt;p&gt;I've modified the code: instead of swapping the DoCreate and the BorderStyle, it now inserts the BorderStyle before the DoCreate. It might make a subtle difference, although I don't know of any cases where it would.&lt;/p&gt;
</description></item><item><title>re: Fix your forms to paint borders correctly under Vista Aero</title><link>http://blogs.msdn.com/calvin_hsia/archive/2007/04/27/fix-your-forms-to-paint-borders-correctly-under-vista-aero.aspx#2315426</link><pubDate>Sat, 28 Apr 2007 23:54:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2315426</guid><dc:creator>Randy Jean</dc:creator><description>&lt;p&gt;Calvin,&lt;/p&gt;
&lt;p&gt;Your continued contributions to the VFP community are much appreciated. &amp;nbsp;Keep up the great work!&lt;/p&gt;
</description></item><item><title>re: Fix your forms to paint borders correctly under Vista Aero</title><link>http://blogs.msdn.com/calvin_hsia/archive/2007/04/27/fix-your-forms-to-paint-borders-correctly-under-vista-aero.aspx#2331629</link><pubDate>Mon, 30 Apr 2007 01:59:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2331629</guid><dc:creator>Markus Winhard</dc:creator><description>&lt;p&gt;Hi Calvin,&lt;/p&gt;
&lt;p&gt;thank you very much for another insight into the inner workings of VFP. I'd like to add that your fix can be called from a project hook class' BeforeBuild event. &lt;/p&gt;
&lt;p&gt;Unfortunately it's not as useful for a professional VFP user. Most of us are using Visual SourceSafe with VFP. So most forms are checked in at build time and thus are read only (removing the read only attribute is not really an option).&lt;/p&gt;
&lt;p&gt;As the ProjectHook class has no BeforeCheckIn event I have no clue how to automate running your code before check in. &lt;/p&gt;
&lt;p&gt;Any idea?&lt;/p&gt;
&lt;p&gt;TIA,&lt;/p&gt;
&lt;p&gt;Markus&lt;/p&gt;
</description></item><item><title>re: Fix your forms to paint borders correctly under Vista Aero</title><link>http://blogs.msdn.com/calvin_hsia/archive/2007/04/27/fix-your-forms-to-paint-borders-correctly-under-vista-aero.aspx#2336664</link><pubDate>Mon, 30 Apr 2007 11:17:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2336664</guid><dc:creator>Dominic Webb</dc:creator><description>&lt;p&gt;Unfortunately this fix does not work - at least under VFP 8. Mostly (but not always) the borders are correctly painted on creation, but if a form is opened over the top, or the form moved over the edge of the screen and back, corruptions occur. The properties of one my forms that does not work (after Calvin's fix) are:&lt;/p&gt;
&lt;p&gt;Height = 396&lt;/p&gt;
&lt;p&gt;Width = 314&lt;/p&gt;
&lt;p&gt;BorderStyle = 2&lt;/p&gt;
&lt;p&gt;DoCreate = .T.&lt;/p&gt;
&lt;p&gt;ShowTips = .T.&lt;/p&gt;
&lt;p&gt;AutoCenter = .T.&lt;/p&gt;
&lt;p&gt;Caption = &amp;quot;Letter Generator&amp;quot;&lt;/p&gt;
&lt;p&gt;ControlBox = .F.&lt;/p&gt;
&lt;p&gt;Closable = .F.&lt;/p&gt;
&lt;p&gt;MaxButton = .F.&lt;/p&gt;
&lt;p&gt;MinButton = .F.&lt;/p&gt;
&lt;p&gt;WindowType = 1&lt;/p&gt;
&lt;p&gt;Name = &amp;quot;LETTER&amp;quot;&lt;/p&gt;
&lt;p&gt;I have tried moving other properties before the DoCreate, but without success. Interestingly, running as administrator does correct the problem.&lt;/p&gt;
&lt;p&gt;Another workaround I have just tried is to set HalfHeightCaption = .T., which gives a Windows 2000 look, but does seem to avoid the corruptions.&lt;/p&gt;
&lt;p&gt;A final problem affecting VFP applications is with fonts corrupting. I understand from Rick Strahl that this is due to the ClearType setting which is now default in Vista. Are there likely to be any solutions to this?&lt;/p&gt;
</description></item><item><title>re: Fix your forms to paint borders correctly under Vista Aero</title><link>http://blogs.msdn.com/calvin_hsia/archive/2007/04/27/fix-your-forms-to-paint-borders-correctly-under-vista-aero.aspx#2341115</link><pubDate>Mon, 30 Apr 2007 19:07:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2341115</guid><dc:creator>Calvin_Hsia</dc:creator><description>&lt;p&gt;Dominic: &lt;/p&gt;
&lt;p&gt;I tried creating a form with exactly the same properties as you specify in VFP8, and it repro’s the Aero problem as expected. I run the fix in my code above to put the BorderStyle before the DoCreate, and the problem goes away. Keep in mind that every time VFP rewrites the form from any modification, the fix above needs to be applied. If you can still repro the problem, can you provide the exact repro steps. Thanks&lt;/p&gt;
</description></item><item><title>re: Fix your forms to paint borders correctly under Vista Aero</title><link>http://blogs.msdn.com/calvin_hsia/archive/2007/04/27/fix-your-forms-to-paint-borders-correctly-under-vista-aero.aspx#2341509</link><pubDate>Mon, 30 Apr 2007 19:59:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2341509</guid><dc:creator>Calvin_Hsia</dc:creator><description>&lt;p&gt;Markus: &lt;/p&gt;
&lt;p&gt;Perhaps in your beforeBuild event you can run code that turns off the readonly attrib, applies the fix. The AfterBuild event can be used to clean up. You could even make/restore a backup copy in these events.&lt;/p&gt;
</description></item><item><title>re: Fix your forms to paint borders correctly under Vista Aero</title><link>http://blogs.msdn.com/calvin_hsia/archive/2007/04/27/fix-your-forms-to-paint-borders-correctly-under-vista-aero.aspx#2349698</link><pubDate>Tue, 01 May 2007 07:04:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2349698</guid><dc:creator>Kenneth Tamayo</dc:creator><description>&lt;p&gt;Calvin,&lt;/p&gt;
&lt;p&gt;Thank you for these set of fixes!&lt;/p&gt;
</description></item><item><title>Windows Vista Aero BorderStyle Paint problem as non Administrator</title><link>http://blogs.msdn.com/calvin_hsia/archive/2007/04/27/fix-your-forms-to-paint-borders-correctly-under-vista-aero.aspx#2363569</link><pubDate>Wed, 02 May 2007 00:43:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2363569</guid><dc:creator>Calvin Hsia's WebLog</dc:creator><description>&lt;p&gt;Above is an image of an inner form (from the C++ project below) before and after I dragged it a little&lt;/p&gt;
</description></item><item><title>VFP9 SP2 / SEDNA USEFUL LINKS</title><link>http://blogs.msdn.com/calvin_hsia/archive/2007/04/27/fix-your-forms-to-paint-borders-correctly-under-vista-aero.aspx#4329178</link><pubDate>Sat, 11 Aug 2007 07:09:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4329178</guid><dc:creator>Cesar Chalom</dc:creator><description>&lt;p&gt;Here are some of the links that I often visit regarding VFP9 SP2 and Sedna. The official Microsoft Visual...&lt;/p&gt;
</description></item><item><title>re: Fix your forms to paint borders correctly under Vista Aero</title><link>http://blogs.msdn.com/calvin_hsia/archive/2007/04/27/fix-your-forms-to-paint-borders-correctly-under-vista-aero.aspx#4758366</link><pubDate>Wed, 05 Sep 2007 11:55:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4758366</guid><dc:creator>Gregory Adam</dc:creator><description>&lt;p&gt;Calvin,&lt;/p&gt;
&lt;p&gt;When the border/Titlebar is not shown, clicking outside the form and clicking back inside the form sometimes repaints it correctly with a Titlebar&lt;/p&gt;
&lt;p&gt;Have taken out the 'DoCreate = .T.' line altogether. &amp;nbsp;Some testing seems to confirm that this is another possibility&lt;/p&gt;
&lt;p&gt;(1) Compile form does not put 'DoCreate = .T.'&lt;/p&gt;
&lt;p&gt;(2) Editing a form does put the 'DoCreate = .T.' back&lt;/p&gt;
&lt;p&gt;Any thoughts ?&lt;/p&gt;
</description></item><item><title>re: Fix your forms to paint borders correctly under Vista Aero</title><link>http://blogs.msdn.com/calvin_hsia/archive/2007/04/27/fix-your-forms-to-paint-borders-correctly-under-vista-aero.aspx#5740053</link><pubDate>Sun, 28 Oct 2007 17:34:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5740053</guid><dc:creator>Joe M.</dc:creator><description>&lt;p&gt;How can I enabled the Aero Glass effect to a &amp;nbsp;VFP program that's built as a SDI? In other words, this program uses the main VFP screen at runtime. VFP ignores the Aero Glass effect. Can it be enabled in this instance?&lt;/p&gt;
</description></item><item><title>Windows Vista border issue and SP2</title><link>http://blogs.msdn.com/calvin_hsia/archive/2007/04/27/fix-your-forms-to-paint-borders-correctly-under-vista-aero.aspx#5802180</link><pubDate>Wed, 31 Oct 2007 21:17:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5802180</guid><dc:creator>yag: Community and Architecture</dc:creator><description>&lt;p&gt;We've figured out the Vista border issue (we think). We couldn't reproduce it here, but Jim Slater noted&lt;/p&gt;
</description></item><item><title>re: Fix your forms to paint borders correctly under Vista Aero</title><link>http://blogs.msdn.com/calvin_hsia/archive/2007/04/27/fix-your-forms-to-paint-borders-correctly-under-vista-aero.aspx#8956938</link><pubDate>Thu, 18 Sep 2008 11:26:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8956938</guid><dc:creator>Christoph Dreßler</dc:creator><description>&lt;p&gt;The Border problem exists also with Border Style = 3. I fix the program be amended and all was well.&lt;/p&gt;
</description></item><item><title>re: Fix your forms to paint borders correctly under Vista Aero</title><link>http://blogs.msdn.com/calvin_hsia/archive/2007/04/27/fix-your-forms-to-paint-borders-correctly-under-vista-aero.aspx#9234129</link><pubDate>Thu, 18 Dec 2008 07:07:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9234129</guid><dc:creator>Abel Turrubiartes</dc:creator><description>&lt;p&gt;Hi Calvin. I'm coming late to the party but have the same VFP form border issues and need some clarity. All of the forms in my app. were built using Vsual Fox Express and VFP9. All of the forms are VCXs. None are SCX. Nevertheless, in Aero, they all paint correctly at startup but any form movement (moving a form from one place to another on the screen) or calling another form corrupts their borders. The form's title bar disappears thereby losing its Min, Max and Close buttons.&lt;/p&gt;
&lt;p&gt;I haven't tried your code because your message imples the VCX forms should behave correctly. What am I missing? Thanks.&lt;/p&gt;
</description></item><item><title>re: Fix your forms to paint borders correctly under Vista Aero</title><link>http://blogs.msdn.com/calvin_hsia/archive/2007/04/27/fix-your-forms-to-paint-borders-correctly-under-vista-aero.aspx#9738301</link><pubDate>Fri, 12 Jun 2009 22:55:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9738301</guid><dc:creator>出会い</dc:creator><description>&lt;p&gt;ヒマだょ…誰かかまってぉ…会って遊んだりできる人募集！とりあえずメール下さい☆　uau-love@docomo.ne.jp&lt;/p&gt;
</description></item></channel></rss>