BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to use Windows OS Buttons instead of BCB's?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Students)
View previous topic :: View next topic  
Author Message
Olives
Guest





PostPosted: Tue Mar 27, 2007 4:38 pm    Post subject: How to use Windows OS Buttons instead of BCB's? Reply with quote



I'm using BCB6 and when I run my apps on Windows XP the controls like
progress bars, buttons, etc. feel out of style because they aren't using
the windows controls. Is there any way I can use the buttons and progress
bars of XP/Vista rather than the default 2000 looking controls?
I'm sure I could maybe use a different component but I'd like the controls
to use the style control of the current OS.

Thanks.
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Tue Mar 27, 2007 11:25 pm    Post subject: Re: How to use Windows OS Buttons instead of BCB's? Reply with quote



"Olives" <junkmail78 (AT) charter (DOT) net> wrote in message
news:Km7Oh.5006$JR7.4570 (AT) newsfe03 (DOT) lga...

Quote:
I'm using BCB6 and when I run my apps on Windows XP the
controls like progress bars, buttons, etc. feel out of style
because they aren't using the windows controls.

Yes, they are. You simply did not provide an XP theme manifest for
the application. Without that, the newer Common Controls v6 DLL isn't
used. Look at the following articles for more details:

Using Windows XP Visual Styles
http://msdn2.microsoft.com/en-us/library/ms997646.aspx

Microsoft ComCtrls and Delphi/C++Builder version 6
http://dn.codegear.com/article/28423

Also look at the Theme Manager component (http://www.delphi-gems.com).
Borland later integrated it directly into newer versions of the VCL.


Gambit
Back to top
Olives
Guest





PostPosted: Wed Mar 28, 2007 1:31 pm    Post subject: Re: How to use Windows OS Buttons instead of BCB's? Reply with quote



Thanks Gambit

"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote in message
news:460953f5$1 (AT) newsgroups (DOT) borland.com...
Quote:

"Olives" <junkmail78 (AT) charter (DOT) net> wrote in message
news:Km7Oh.5006$JR7.4570 (AT) newsfe03 (DOT) lga...

I'm using BCB6 and when I run my apps on Windows XP the
controls like progress bars, buttons, etc. feel out of style
because they aren't using the windows controls.

Yes, they are. You simply did not provide an XP theme manifest for
the application. Without that, the newer Common Controls v6 DLL isn't
used. Look at the following articles for more details:

Using Windows XP Visual Styles
http://msdn2.microsoft.com/en-us/library/ms997646.aspx

Microsoft ComCtrls and Delphi/C++Builder version 6
http://dn.codegear.com/article/28423

Also look at the Theme Manager component (http://www.delphi-gems.com).
Borland later integrated it directly into newer versions of the VCL.


Gambit

Back to top
Olives
Guest





PostPosted: Tue Apr 03, 2007 8:08 pm    Post subject: Re: How to use Windows OS Buttons instead of BCB's? Reply with quote

I got the XP theme to look by creating the .manifest file but I want to add
it to the resource so if the .exe is moved/copied it doesn't
go back to using the non-xp style.

the MSDN says
Add the manifest to your application's resource file as follows:
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "YourApp.exe.manifest"

but i'm not really sure how I do that.

Thanks

"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote in message
news:460953f5$1 (AT) newsgroups (DOT) borland.com...
Quote:
Yes, they are. You simply did not provide an XP theme manifest for
the application. Without that, the newer Common Controls v6 DLL isn't
used. Look at the following articles for more details:

Using Windows XP Visual Styles
http://msdn2.microsoft.com/en-us/library/ms997646.aspx

Microsoft ComCtrls and Delphi/C++Builder version 6
http://dn.codegear.com/article/28423

Also look at the Theme Manager component (http://www.delphi-gems.com).
Borland later integrated it directly into newer versions of the VCL.


Gambit
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Students) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.