Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Want to have forms with 'skins'...
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00289069
Message ID:
00289198
Views:
39
Well I really don't think that you will get any ActiveX control that claims to handle skins to work unless it was made specifically for VFP.

If you take a look at some programs like Winamp or Realjukebox you will see that all a skin is is a collection of bitmaps for the form and for the controls. This would be easy to put in a vfp app. For example say you have a form (Form1) that has a command button on it (button1). Your program has a directory called skins and under skins are other subdirectories called skins1, skins2, or whatever. In the skins1 directory there would be a form1.bmp and a button1.bmp. When your forms loads just look for skins\skins1\form1.bmp and button1.bmp and load those pictures on your form and your button. If you want to switch to skin2 just look in skins\skin2 for the same files an so on. Seems simple to me.

Of course you would have to put some error checking for missnamed files or files that don't meet to right specs and if you want your UI to totally change shape and size that is a whole other ball game. But if you look a building a skin for Winamp you have to meet very specific specs and the program really doeasn't change much except it's colors.

Seems like a lot of work for business apps which is what I think most of us build but if your building an app for the masses it might be worth the effort. But I would recommend that you program it yourself as opposed to using an ActiveX Control.
Rip Ryness
International Falls, MN
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform