Thanks LainZ, here is what I have been working on. Just thought I'd show you.... I do have a question though with the first error. What causes that ImageButton to give this err? and what can I do to stop it? see pic...
I'm working on making the Button work as a checkbox or toggleBox. I use this quite often. Next I want to make it recieve the focus as well. I think that is the only thing that I would like it to do extra. Any suggestions on adding the Focus????
Thanks,
Mark
I don't know, something wrong with gdb, or a path?
That's ok. Originally this component had checkbox mode, but I changed it a lot and forget to add it again. Is not so simple now because the fading animations, but hopefully you can do it.
If you finish it and want to give back I can test it and add it to bgracontrols, of course adding credits to your improvements.
And about the focus, you need to create a new copy of BCImageButton, and that inherits from TCustomControl and not from TGraphicControl- The only disadvantage of this is that transparency will not work for these kind of controls, all are opaque or with a solid background color. Also you need to add one of these:
- A new image for the focused state
- A method that allows customization of the focused drawings
Check TBCButtonFocus, I did that control based on TBCButton and that support focus.