Board index » cppbuilder » Win XP look on the menu and toolbar

Win XP look on the menu and toolbar


2004-05-26 05:28:47 PM
cppbuilder78
Hi!
One of my customer asks me if I can make the look of menu and Toolbars the
way they look in XP, or office 2003.
How is the best way to do this ?
Regards
Per Kare Foss
 
 

Re:Win XP look on the menu and toolbar

Per Kare Foss wrote:
Quote
Hi!

One of my customer asks me if I can make the look of menu and Toolbars the
way they look in XP, or office 2003.
How is the best way to do this ?

Regards
Per Kare Foss
To do this, you need to get into manifests - use google to look for "Borland
Manifests".
John
 

Re:Win XP look on the menu and toolbar

"Per Kare Foss" < XXXX@XXXXX.COM >wrote:
Quote
Hi!

One of my customer asks me if I can make the look of menu and Toolbars the
way they look in XP, or office 2003.
How is the best way to do this ?
You need a manifest file. It must be located in the same folder
as the exe and it must be named YourExeName.exe.manifest
Now create the maifest file as a pure ascii text file. Just
cut -n- paste the following:
< Don't include this line>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="Formulas"
type="win32"/>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"/>
</dependentAssembly>
</dependency>
</assembly>
< Don't include this line>
Be aware that not all components are supported. You can find
3rd party ones that do support themes and there is all the
documentation that you need to create your own xp components
on the MS web site.
~ JD
 

{smallsort}

Re:Win XP look on the menu and toolbar

JD wrote:
Quote

"Per Kare Foss" < XXXX@XXXXX.COM >wrote:
>Hi!
>
>One of my customer asks me if I can make the look of menu and Toolbars the
>way they look in XP, or office 2003.
>How is the best way to do this ?

You need a manifest file. It must be located in the same folder
as the exe and it must be named YourExeName.exe.manifest

Now create the maifest file as a pure ascii text file. Just
cut -n- paste the following:

< Don't include this line>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="Formulas"
type="win32"/>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"/>
</dependentAssembly>
</dependency>
</assembly>
< Don't include this line>

Be aware that not all components are supported. You can find
3rd party ones that do support themes and there is all the
documentation that you need to create your own xp components
on the MS web site.

~ JD
Are you restricted with what versions of BCB you can do this ?
 

Re:Win XP look on the menu and toolbar

Quote
... and there is all the
documentation that you need to create your own xp components
on the MS web site.

~ JD
Could you provide a link? :-)
Thanks,
Best regards
Michael F. S. Christensen
 

Re:Win XP look on the menu and toolbar

john blackburn < XXXX@XXXXX.COM >wrote:
Quote
Are you restricted with what versions of BCB you can do this ?
No. It's an OS thing. However, 3rd party components that
directly manage theme support most likely won't work simply
because they wre written with later versions of the compiler.
~ JD
 

Re:Win XP look on the menu and toolbar

"Michael F. S. Christensen" < XXXX@XXXXX.COM >wrote:
Quote
Could you provide a link? :-)
delphi.about.com/gi/dynamic/offsite.htm
~ JD
 

Re:Win XP look on the menu and toolbar

JD wrote:
Quote

john blackburn < XXXX@XXXXX.COM >wrote:
>Are you restricted with what versions of BCB you can do this ?

No. It's an OS thing. However, 3rd party components that
directly manage theme support most likely won't work simply
because they wre written with later versions of the compiler.

~ JD
Well, the reason I ask is that the text on many of my objects just vanishes
e.g TabControls, 3rd Party implementation of Outlook style menus etc.
 

Re:Win XP look on the menu and toolbar

"JD" < XXXX@XXXXX.COM >wrote:
Quote

"Michael F. S. Christensen" < XXXX@XXXXX.COM >wrote:
>Could you provide a link? :-)

Sorry. Wrong link :-)
Have a look at thefollowing articles for more information:
Using Windows XP Visual Styles
msdn.microsoft.com/library/en-us/shellcc/platform/commctls/userex/cookbook.asp
Visual Styles Reference
msdn.microsoft.com/library/en-us/shellcc/platform/commctls/userex/refentry.asp
~ JD
 

Re:Win XP look on the menu and toolbar

john blackburn < XXXX@XXXXX.COM >wrote:
Quote
Well, the reason I ask is that the text on many of my
objects just vanishes e.g TabControls, 3rd Party
implementation of Outlook style menus etc.
The VCL does not directly support xp themes so your version
shouldn't matter but then I use v6 so who knows ...
Just to remind you, I did state that it doesn't work with all
controls - in particular 3rd party controls.
~ JD
 

Re:Win XP look on the menu and toolbar

You may experience some problems with your tool-buttons if you use manifest
file
to have an XP look. Especially if they are grouped. Some of them may act
'dead'.
If that happens be aware that's from the manifest.
There were some threads on that in this ng.
Vladimir Stefanovic
Quote
One of my customer asks me if I can make the look of menu and Toolbars the
way they look in XP, or office 2003.
How is the best way to do this ?

Regards
Per Kare Foss
 

Re:Win XP look on the menu and toolbar

"john blackburn" < XXXX@XXXXX.COM >wrote in message
Quote
Well, the reason I ask is that the text on many of my
objects just vanishes e.g TabControls, 3rd Party
implementation of Outlook style menus etc.
Manifests do not work well with owner-drawn controls. The controls
themselves must be coded to specifically use XP's Themes API directly for
their custom drawings.
Gambit