![]() |
Changing just button apperance
I've been looking at how to change the appearance of a Button.
I've managed to changed it to have rounded edges but over-riding OnPaint, however I lose the default capabilities like "enabled" and setting text up easily from the Properties menu. If I overide OnPaint for rounded-edge appearance, I need to perform all other things as well (drawString, etc). If i call base.OnPaint( ) first, my drawings will cover it anyway. So the question is, any simple way to just change the apperance, but retain all other functionality? Thanks in advance. |
Re: Changing just button apperance
Quote:
However, you really only need to draw the button itself (taking into account whether it's normal or 'greyed out' for disabled; you can accomplish the latter by simply adjusting the colors in your OnPaint() method), and then the text on it. Drawing the text is easy, but figuring out placement of the text and its bounds, etc, is harder (though not that hard). |
| All times are GMT -5. The time now is 4:15 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC