Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DateTimePicker and XP Themes
Message
From
04/03/2003 16:26:35
 
 
To
04/03/2003 13:49:32
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00761074
Message ID:
00761206
Views:
26
>We use MS MSComCtl2.DTPicker to let users select a date from a drop down calendar.
>
>With XP themes, this control is not "themed" and always shows the W2K look. We were used to have VFP controls look "old" and ActiveX ones look great, but now VFP is ahead of time! Does anyone have an idea how to make MSComCtl2 controls inherit XP themes?

Hi Christian,

Add .manifest file for your EXE apps and/or VFPx.EXE and you will see common controls "themed".

For sample, manifest file for VFP7.EXE (save it as "vfp7.exe.manifest" in VFP home directory) may look like the following:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
    version="7.0.0.0"
    processorArchitecture="X86"
    name="Microsoft.VisualFoxPro"
    type="win32"
/>
<description>Microsoft Visual FoxPro.</description>
<dependency>
    <dependentAssembly>
        <assemblyIdentity
            type="win32"
            name="Microsoft.Windows.Common-Controls"
            version="6.0.0.0"
            processorArchitecture="X86"
            publicKeyToken="6595b64144ccf1df"
            language="*"
        />
    </dependentAssembly>
</dependency>
</assembly>
HTH
Alex
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform