Thread View: borland.public.delphi.vcl.components.using.dotnet
6 messages
6 total messages
Started by Patrick
Tue, 16 Jan 2007 13:36
Application.EnableVisualStyles in 2006 doesn't work
Author: Patrick
Date: Tue, 16 Jan 2007 13:36
Date: Tue, 16 Jan 2007 13:36
6 lines
1143 bytes
1143 bytes
In my program unit I have: Application.EnableVisualStyles; this should enable XP style buttons. In Delphi 2005 it indeed does, but in 2006 it doesn't. I checked FlatStyle=System, all seems fine, but isn't. Something changed, but what??
Re: Application.EnableVisualStyles in 2006 doesn't work
Author: Patrick
Date: Tue, 16 Jan 2007 15:49
Date: Tue, 16 Jan 2007 15:49
17 lines
1467 bytes
1467 bytes
The problem seems to be .NET 1.1 SP1 Delphi 2005 doesn't install the PS, 2006 does. How can I solve this problem? (except reinstalling the system without SP1, also probably systems with SP1 will not see the XP style). "Patrick" <patrickveenstra@yahoo.es> escribi๏ฟฝ en el mensaje news:45acd4e6@newsgroups.borland.com... > In my program unit I have: > Application.EnableVisualStyles; > > this should enable XP style buttons. In Delphi 2005 it indeed does, but in > 2006 it doesn't. I checked FlatStyle=System, all seems fine, but isn't. > Something changed, but what?? > > >
Re: Application.EnableVisualStyles in 2006 doesn't work
Author: Marc Rohloff TeamB
Date: Tue, 16 Jan 2007 16:02
Date: Tue, 16 Jan 2007 16:02
16 lines
1754 bytes
1754 bytes
On Tue, 16 Jan 2007 14:36:58 +0100, Patrick wrote: > In my program unit I have: > Application.EnableVisualStyles; > > this should enable XP style buttons. In Delphi 2005 it indeed does, but in > 2006 it doesn't. I checked FlatStyle=System, all seems fine, but isn't. > Something changed, but what?? There is a bug n the EnableVisualStyles. It is explained here http://blogs.msdn.com/rprabhu/archive/2003/09/28/56540.aspx (Somewhere near the bottom) -- Marc Rohloff [TeamB] marc rohloff -at- myrealbox -dot- com
Re: Application.EnableVisualStyles in 2006 doesn't work
Author: Patrick
Date: Tue, 16 Jan 2007 16:19
Date: Tue, 16 Jan 2007 16:19
4 lines
1390 bytes
1390 bytes
Thanks, now I can solve the problem. Just one thing: In .NET version 1.1 and version 2.0 will be installed at the same time right? Does that mean that if I upgrade to .NET 2.0 the problem will not be fixed, because my Delphi program has been made to work with v1.1 components?
Re: Application.EnableVisualStyles in 2006 doesn't work
Author: Marc Rohloff TeamB
Date: Tue, 16 Jan 2007 19:35
Date: Tue, 16 Jan 2007 19:35
15 lines
1851 bytes
1851 bytes
On Tue, 16 Jan 2007 17:19:47 +0100, Patrick wrote: > Thanks, now I can solve the problem. Just one thing: In .NET version 1.1 and > version 2.0 will be installed at the same time right? Does that mean that if > I upgrade to .NET 2.0 the problem will not be fixed, because my Delphi > program has been made to work with v1.1 components? Your code will only run against the .NET 1.1 runtime. The solution is outlined fairly simply: Add Application.DoEvents between Application.EnableVisualStyles and Application.Run. -- Marc Rohloff [TeamB] marc rohloff -at- myrealbox -dot- com
Re: Application.EnableVisualStyles in 2006 doesn't work
Author: Patrick
Date: Tue, 16 Jan 2007 22:25
Date: Tue, 16 Jan 2007 22:25
4 lines
1188 bytes
1188 bytes
I did see the solution, but thank you anyways. I really disagree with Microsoft's policy. If you must have several versions of .NET installed, they should fix errors in every version.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads