|
-
Jun 14th, 2006, 12:25 AM
#1
Thread Starter
Hyperactive Member
[2005] Custom Buttons
Hey guys, I have created a good button layout in photoshop, but how would I use it in my program? I do not want to always add the picture box, so is there some kind of code there is so that everytime I add a button, it will be automatically skinned with my textures? Like in this picture:
http://www.durosoft.com/DuroBlend-Final-Preview1.jpg
See how his buttons are skinned? How do you do that?
-
Jun 14th, 2006, 02:03 AM
#2
Re: [2005] Custom Buttons
You have to define your own class that inherits Button, handle its painting code to use your image, then use that control instead of regular Buttons in your applications. You would normally compile your class, along with any other custom controls you've created, into a library. You can then add the controls contained in that library to your Toolbox and then add them to your forms at design time just like the standard controls. There is information on MSDN about authoring your own controls.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|