How can I make a button with a set size
Posted: Wed Oct 25, 2006 21:59
I have a bunch of buttons, each on uses an image in the imageset that is 100 pixels square. When I create the buttons (through Lua, not that that matters), I wnat the buttons to always be 100 pixels square (no stretching for anything). It seems to me taht it should be possible in this case to not need to call setSize() for each button, and just have them use the size of their image to define the size of the button, but I have no idea how to do this.
Any suggestions?
Any suggestions?