From: Johnathan G. <da...@us...> - 2002-07-14 08:22:38
|
daren 2002/07/14 01:22:37 PDT Modified files: phui/phui Button.cpp FontRenderer.cpp FontRenderer.h Log: Text spillage under the buttons no longer occurs; if you give a button text that cannot possible fit multilined within its height constraint, it will automatically resize to fit the text. Considerations to be made: - Does the user always want this to happen? - If the button becomes larger than the window, the button will flow out of the window. Should the resizing escalate up to the root widget, so that it is resized as well? - If we resize all of the windows, and still cannot map the text, what to do? Anyhow; for now, check out the window and event demos....No more text leakage! :P Revision Changes Path 1.21 +5 -3 lib/phui/phui/Button.cpp 1.6 +13 -17 lib/phui/phui/FontRenderer.cpp 1.6 +7 -4 lib/phui/phui/FontRenderer.h http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/isugamedev/lib/phui/phui/Button.cpp.diff?r1=1.20&r2=1.21&diff_format=h http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/isugamedev/lib/phui/phui/FontRenderer.cpp.diff?r1=1.5&r2=1.6&diff_format=h http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/isugamedev/lib/phui/phui/FontRenderer.h.diff?r1=1.5&r2=1.6&diff_format=h |