Hi, this is in an alpha stage, is a set of controls inspired on Material Design. Is open source (LGPL v3) and you can grab it, use it, expand it, share it, etc.
Currently we have:
- MDButton
Now included in BGRAControlshttps://github.com/bgrabitmap/bgracontrols/MDButton Features
- Ripple effect (property Animation)
- Normal Button, Toggle Button, Toggle Group (property Kind)
- Checked property
- Color for each state (Normal, Hover, Active, Disabled)
* Toggle mode works like TToggleBox or a single TCheckBox (with a shape of a button). Put a lot of buttons with Toggle mode and you have a TCheckGroup (maybe in the future we add a method like "Select All", "Unselect All" and "Invert Selection", some handy methods.
* ToggleGroup mode works like a TRadioGroup (you can select only one at a time, and selecting one is mandatory).
* ToggleGroup does not require a parent other than the Form, but if you want to divide between different groups a single TPanel suit the needs, and it does not requires a single line of code to work.
* If you want custom, you can manage the Checked property by yourself.
Next things to add:
- I will try to add images support (like a glyph) with ImageList and ImageIndex, so you can use any image at any given time depending on the state of the button.
- More controls
Is in alpha, so there are missing things, is just for testing at this time. I will add propper events and properties in time.
Thanks to @josh for his suggestions and help with ideas!
Thanks for reading. Enjoy!