Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DateTimePicker and XP Themes
Message
De
04/03/2003 16:26:35
 
 
À
04/03/2003 13:49:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00761074
Message ID:
00761206
Vues:
25
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform