![]() |
AF Button Class - C# Release - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Coding (https://sinister.ly/Forum-Coding) +--- Forum: Visual Basic & .NET Framework (https://sinister.ly/Forum-Visual-Basic-NET-Framework) +--- Thread: AF Button Class - C# Release (/Thread-AF-Button-Class-C-Release) |
AF Button Class - C# Release - cxS - 03-08-2013 Here's a button class I wrote by looking at the nav bar on the forum and trying to manipulate that same style using GDI. ![]() RE: AF Button Class - C# Release - Nefarious - 03-08-2013 I'm gonna try to learn C# so this will give me some code to look at thanks. It looks good. RE: AF Button Class - C# Release - cxS - 03-08-2013 Thanks for the feedback ![]() There was no "pressed" button state for the forum navbar buttons, so I kept it that way in the button class itself here. Only a normal, and an "active" state. I started a template assuming 3 states: normal, hover, pressed. It appears that isn't the way the actual nav buttons are on the forum though so I removed one state. Btw, adding an image to this would be easy. Just requires a bit of modding on the placement logic for the text, plus the size of the image/icon on the button to keep everything centered. |