Hey all,
I made up some XP style button images to use as a replacement for the command buttons on OS other than winXP (or for people who dont want to use the XP Manifest).
So, hope ya like'em =)
Printable View
Hey all,
I made up some XP style button images to use as a replacement for the command buttons on OS other than winXP (or for people who dont want to use the XP Manifest).
So, hope ya like'em =)
Or you can some code like attached here.
It's code for an XP Button. It can take many styles...and loads of customisation too. I am still working on some image code so it's not 100% complete yet.
I got the code from planet source code and have modified it considerably...can't remember the link though :(
Woka
Oh, and you forgot the picture of when a button has got focus...it has a blue border :)
WOka
I thought you wrote the whole thing. Boooo Bad Woka *Slap*
I see you got the sourcesafe file removed. :thumb: :D
No no I cheated a little on this one. However, I could write one from scratch if I wanted, but it's more fun moulding someones code into a better version of your own up to a point where the code doesn't resemble anything that the original author has, complete rewrite essentially. The thread is posted in another thread about XP buttons...hang on...
Here:
http://www.vbforums.com/showthread.p...woka+xp+button
Look at the planet source code link. Download the code and look at it.
I have stripped out loads of code, well over 4/5 ths of it, and am improving the rest of it as I go along.
Added many more properties now and cleaned up a lot more code.
It doesn't do all the other button styles that the original code does...but it's much better code for just an XP button. It still requires a lot of work, but it's fully functional so why not use it. I need to add the DisabledPicture property sicne when the button rendered the icon for disabled mode it looks pants, so I have to replace this with a picture or figure out some better runtime code to convert the image to be disabled.
Woof
I created one from scratch that supports the 3 main XP color themes, XP Blue, XP Silver, and XP Olive, also supports icons/images.
I made it along time ago when I was still pretty new to VB but it's all owner-drawn using code.
The mouse-over is handled with a timer, I still need to update it so it uses subclassing for mouse hovering, but if you want it let me know and I'll attach it here.
Yea...post your code :)
Woka
Ok, here it is.Quote:
Originally Posted by Wokawidget
Making the color scheme dynamic so the user can set it to any colors is easier than hard coding 3 different styles...plus it adds more functionality to your app.
Nice coding though. good work.
Take a peek at the code I posted, maybe you could ad some of the functionality from the code into your app.
Woof
I agree, hard-coding the theme's colors was a bad idea...
I've been working on a new one just haven't gotten around to finishing it yet. I made that one along time ago and kind of forgot about it...