I've just published a complex bit of C code, possibly one of the most complex I've written in a long time if ever using a six line macro with three function pointers. The second tutorial on the Empire SDL GUI sees a working if not quite complete implementation.
I haven't implemented all of the controls yet, this just has a panel and two buttons and uses the single size, single color monotype font I've used previously. I want it to use the SDL ttf and for buttons etc, and to animate and that will come shortly in a future tutorial.
- Read more about game tutorials in the Games Programming