Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can an image be inserted in a class
Message
De
28/02/2012 12:15:20
 
 
À
28/02/2012 11:18:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01536706
Message ID:
01536711
Vues:
83
>>Can an image be inserted in a class? ie Can a button that has an image, be part of the base class? Instead of being a picture?
>>Any ideas?
>>TIA,
>>Mike
>
>Not that I am aware of. A possible solution is to store the image in a blob field in a common table together with different application specific settings and lookups.

Hi,

What you could do is:

subclass a Container as myButton
remove the borders

add a button (default or your subclassed default)
add an image (default or your subclassed default)
Now you can add all kinds of methods and properties to myButton

the only thing is that this class has a container icon in your class lib instead of a commandbutton icon, so it be

For an application which has to mimic the Office2010 looks this was a quick and usefull solution

Regards,

Koen
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform