[Plib-devel] [PATCH] examples/src/pui/{combobox.cxx => widget_test.cxx}
Brought to you by:
sjbaker
From: Melchior F. <mf...@us...> - 2009-01-29 17:33:56
|
Here's one last (for a while :-) change. Not really a patch, but again a full source file: Quite a while ago I submitted a fix for a puaComboBox bug. To demonstrate both bug and fix, I wrote a simple test application. It wasn't really meant to be committed, but Bram did it anyway. Not a bad idea, actually, as this is a nice testbed for trying out widgets, especially during widget development. I've beefed this up a bit now. Could you replace combobox.cxx by the attached file and rename it to widget_test.cxx (or something else appropriate)? Of course, you'd also have to change all occurrences in the build files (Makefile.am etc.) as well. - adds sample lists and text for usage in widgets - adds key/special handling for puInput/puaLargeInput tests - adds generic callback function - resizes the widget with the window - demonstrates puaLargeInput by default (which doesn't only allow to explore the recent changes, but also displays a short introduction) Unfortunately it flickers badly on resizing, although I've used glutSwapBuffers(). m. |