Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Picture property on command buttons
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00266620
Message ID:
00266643
Vues:
19
>>Has anyone noticed that when you assign an .ICO or .BMP to the picture property of a command button, the .ICO or .BMP will lose the colour white ?
>>
>>I have simply selected an .ICO from the default's provided with VFP, CUST.ICO, and when it's displayed on my command button it loses all of the white colour.
>>
>>Any ideas anyone ??
>>
>>Regards
>>
>>Derek Chapman
>
>Hi Derek,
>
>I've never tried it with icon, but if you use bmp files, you must also use a mask file (.msk). In that case, if you want your bmp file to display exactly as you create it, your mask would be the same size as the bmp image and be all black. If you want some areas to be transparent, you make those parts white in the mask. You may be able to do create a mask file for an icon image as well, but like I said, I've only done it with BMP files. Check out the Fox.BMP and Fox.MSK files in the root of the VFP directory for an example. A mask file (and the bmp) can be created with MSPAINT.

To add, you can save the ICO as a BMP in Imagedit and then use the mask...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform