Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can an image be inserted in a class
Message
From
28/02/2012 12:15:20
 
 
To
28/02/2012 11:18:04
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01536706
Message ID:
01536711
Views:
82
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform