Click to See Complete Forum and Search --> : Skins in VB?
vvmanoj
07-08-2001, 11:54 PM
How do I use skins in a VB application? Are there any good sites to check for this particular topic?
------------------
Manoj
P III 450 MHz
192 MB RAM(PC 100)
ELSA ERAZOR X 32 SDR AGP
AUREAL VORTEX 2
CREATIVE PC-DVD 6X
DXR 3 DECODER
8 GB SEAGATE
ASUS P3B-F
HP 8250i rewriter
SAMSUNG SAMTRON 75 E
300W PS
dighn
07-09-2001, 01:39 AM
VB does not have native support for skins. You would have to write your own skin system.
------------------
So easy to use, no wonder it's number one!!!
Where do you want to go today?
Member of NT Jocks (http://yoconsoft.hypermart.net/images/ntjockdighn.gif)
Tesla coils are not weapons
namgor
07-09-2001, 02:18 PM
hm... you can change color such as active windows color, but that's window's skin not VB skin
------------------
DHAHL3seasons GP:73 G:121 A:55 Pts:176 GWG:12 +/-:184
UWSWA1season GP:9 G:12 A:8 Pts:20 GWG:3 +/-:-3
uwcdc.com (http://www.uwcdc.com) or namgor.com (http://www.namgor.com)
reklis
07-09-2001, 06:06 PM
Originally posted by dighn:
You would have to write your own skin system.
Precisely. However, something like Winamp shouldn't be that hard for any moderately skilled VB programmer to accomplish though.
All you'd have to do is design an open framework of importing images (BMP/JPEG/GIF) on top of your program. Each control would have it's own image. The images would be read from a directory/zipfile some place, they would need to design a naming system for the images (button1.gif, button2.gif). Each of the images would need to be a certain width, height, etc. When the program launches, it loads the current images ontop of all the controls. Kind of like getting dressed before leaving the house http://www.sharkyforums.com/ubb/smile.gif
With significantly more effort, you could develop something that would allow you to place the controls anywhere you wanted. This would allow for far greater customization! A simple config file would need to be provided along with the images. It would need to describe the size, shape, and position of all the controls, as well as the images they will use to "get dressed". This config file would need to be parsed, and then that information would be used to move all the controls to their appropriate places, then slap on the images. The reason it's so much more complex to do it this way, is because there are many more things that can go wrong parsing config files, and moving controls around than when you're just placing images on things.
------------------
Advocate of the Sharky (Ultra) High-Resolution Club [SHRC (http://www.sharkyforums.com/ubb/Forum17/HTML/005121.html)]
main(i){putchar(341513875>>(i-1)*5&31|!!(i<6)<<6)&&main(++i);}
reklis
07-09-2001, 06:10 PM
For the record, I would not recommend the latter of my above recommendations to a Visual Basic program, and would suggest dipping into C++ via COM.
------------------
Advocate of the Sharky (Ultra) High-Resolution Club [SHRC (http://www.sharkyforums.com/ubb/Forum17/HTML/005121.html)]
main(i){putchar(341513875>>(i-1)*5&31|!!(i<6)<<6)&&main(++i);}